Microsoft 365 OAuth error AADSTS50011

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
pischta
Posts: 2
Joined: Fri Dec 15, 2023 10:09 am

Microsoft 365 OAuth error AADSTS50011

Post by pischta »

Script URL:
Version of script: 3.4.3
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
AADSTS50011
Write your message below:
Hi,

I try to set up OAuth, according to https://www.hesk.com/knowledgebase/?article=110
My admin page has custom name 'mandel'.
My redirect url is:
https://hesk.mysite.hu/mandel/oauth_providers.php
I did set up that url in Azure, I checked it.
When I try to verify, I get this error:
"AADSTS50011: The redirect URI 'https://hesk.mysite.hu/helpdesk/mandel/ ... viders.php' specified in the request does not match the redirect URIs configured for the application '...'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal..."
Why I get 'https://hesk.mysite.hu/helpdesk/mandel/ ... viders.php' url in the error message?
Klemen
Site Admin
Posts: 10139
Joined: Fri Feb 11, 2005 4:04 pm

Re: Microsoft 365 OAuth error AADSTS50011

Post by Klemen »

1. Do you have any redirects set up from https://hesk.mysite.hu/mandel/oauth_providers.php to https://hesk.mysite.hu/helpdesk/mandel/ ... viders.php ?

2. what does the URL say in your browser bar when you are on the Hesk Oauth Providers page?

3. is your "Help desk URL" in Admin panel > Settings > General correct?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
pischta
Posts: 2
Joined: Fri Dec 15, 2023 10:09 am

Re: Microsoft 365 OAuth error AADSTS50011

Post by pischta »

1. No, I don't.
2. https://hesk.mysite.hu/mandel/oauth_providers.php
3. https://hesk.mysite.hu/helpdesk -> I changed it to https://hesk.mysite.hu and the verification was successful.

Thanks for your help.
Post Reply