OAUTH2 funktioniert nicht.

Allgemein Fragen, deutsche News, Ankündigungen & Events zu Znuny
Locked
Elikx
Znuny newbie
Posts: 2
Joined: 17 Jun 2024, 15:37
Znuny Version: 7.0.17
Real Name: Elias
Company: i+R Business Partner GmbH

OAUTH2 funktioniert nicht.

Post by Elikx »

Hallo,

Leider habe ich bisher keine bestehenden Beiträge oder Videos hierzu gefunden, deshalb stelle ich hier mal meine Frage im Forum.
Anleitung wurde natürlich befolgt. :) (https://www.znuny.org/de/blog/modern-au ... -microsoft)

Zur Erklärung:
Wir würden gerne unsere Email Adressen von Microsoft synchronisieren um eingehende Mails ins Ticketsystem zu bekommen.
Da Microsoft aber keine Basic Authentication mehr anbietet, müssen wir das ganze wohl über Oauth2 Abwickeln.
Leider funktioniert das aber nicht so richtig... ich habe bereits mehrmals die ZNUNY Version 6.5 LTS und 7.0 von Grund auf neu installiert.

Wenn man beim Konfigurierten OAuth2-Token auf aktualisieren geht und sich mit dem gewünschten Konto autorisiert wird man danach auf die
get-oauth2-token-by-authorization-code.pl weitergeleitet, Login ist hier nicht möglich und im Portal ist der Status noch als Fehlschlag deklariert.

Beim Oauth ist aber grundsätzlich alles richtig hinterlegt, über andere Software geht es auch ohne Probleme.
Ich schätze das es vielleicht an der Redirect URL liegt?
https://unsere-domain.local/znuny/get-o ... on-code.pl
- http type = https
- FQDN = lokaler DNS Eintrag erstellt, zugriff darüber ist möglich.

Vielen Dank,
Elikx
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 4232
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OAUTH2 funktioniert nicht.

Post by root »

Hi,

zu den Basic:

- Gibt es eine Fehlermeldung in
- der GUI
- dem Znuny Log
- dem Webserver Log?

Wichtig ist das FQDN, HttpType und der ScriptAlias stimmen und zur Redirect-URL passen.

Zum Access-Token-Scope: das steht soweit ich weiss nicht im Blog, oder?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Elikx
Znuny newbie
Posts: 2
Joined: 17 Jun 2024, 15:37
Znuny Version: 7.0.17
Real Name: Elias
Company: i+R Business Partner GmbH

Re: OAUTH2 funktioniert nicht.

Post by Elikx »

Hi,

Fehlermeldungen sind angehängt, unten befindet sich die Ausgabe vom curl befehl.
Access Token Scope habe ich wieder auf Standard gesetzt, bringt aber leider nichts.

FQDN = znuny.xxx.local
HttpType = https
scriptalias = znuny/

[root@localhost ~]# curl -lv https://znuny.xxx.local/
* Trying 30.0.102.1:443...
* Connected to znuny.xxx.local (30.0.102.1) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Unknown (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.2 (IN), TLS header, Unknown (23):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS header, Unknown (21):
* TLSv1.3 (OUT), TLS alert, unknown CA (560):
* SSL certificate problem: self-signed certificate in certificate chain
* Closing connection 0
curl: (60) SSL certificate problem: self-signed certificate in certificate chain
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
[root@localhost ~]#

Danke
Elikx
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 4232
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OAUTH2 funktioniert nicht.

Post by root »

Hi,

da hast Du irgendetwas in der App versemmelt würde ich sagen.Der Fehler im Log mit AADST ist jedenfalls von Microsoft.
Ich würde jetzt die Azure App neu anlegen und auch eine neue Tokenkonfiguration.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Locked