OAuth-Problem: Login-Seite beim Anfordern eines neuen Tokens

Hilfe zu OTRS Problemen aller Art
Post Reply
tkleinms145
Znuny newbie
Posts: 1
Joined: 02 Dec 2022, 17:05
Znuny Version: 6.4.3
Real Name: T.Klein

OAuth-Problem: Login-Seite beim Anfordern eines neuen Tokens

Post by tkleinms145 »

Hallo zusammen,
ich brauche Hilfe beim Einrichten von OAuth2. Ich habe eine OAuth-Konfiguration erstellt, aber wenn ich auf "Neues Token anfordern" klicke, öffnet sich eine Login-Seite, Image

die URl ist

Code: Select all

https://login.microsoftonline.com/{{Tenant-ID}}/oauth2/v2.0/authorize?client_id={{Client-ID}}&redirect_uri=https%3A%2F%2Fotrs.example.com%2Fotrs%2Fget-oauth2-token-by-authorization-code.pl&response_mode=query&response_type=code&scope=https%3A%2F%2Foutlook.office.com%2FIMAP.AccessAsUser.All%20https%3A%2F%2Foutlook.office.com%2FPOP.AccessAsUser.All%20https%3A%2F%2Foutlook.office.com%2FSMTP.Send%20offline_access&state=TokenConfigID1
Client-ID und Tenant-ID sind entsprechend der Werte die in der Konfiguration eingetragen sind.

Eigentlich hatte ich eine Bestätigungsseite erwartet,
Image
wie in https://www.znuny.org/en/blog/modern-au ... -microsoft unter
"After that, click on Request new token. You see a screen like this to confirm. Click on Accept." beschrieben.

Wo könnte der Fehler liegen?
Vielen Dank im Voraus.
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OAuth-Problem: Login-Seite beim Anfordern eines neuen Tokens

Post by root »

Hallo,

Du musst dich bei Microsoft mit einem/dem Account anmelden der auch Zugriff auf die Postfächer hat. Dann kommt auch der Bildschirm mit dem Hinweis welchen Berechtigungen Du zustimmen musst.

- 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 ?
Post Reply