Page 1 of 1

Office365 OAuth Not Working

Posted: Mon Sep 26, 2022 7:25 pm
by emrekoc
Script URL:
Version of script: 3.4.0
Hosting company: Hosted on site
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: OAuth

Write your message below:
OAuth Providers I tried a lot but I couldn't do it
It didn't work, all the settings I applied are below. Can you help me with this?

I am using Office365 account

Image
Image
Image
Image
Image
Image

Re: Office365 OAuth Not Working

Posted: Mon Sep 26, 2022 7:50 pm
by Klemen
Like the Microsoft error message says, the redirect URL does not match.

I see you have https:// (secure) version in Redirect URIs at Microsoft, but you try to connect from http:// (non-secure) version - that is probably the problem.

If you register https://example.com it must come from https://example.com and not from http://example.com

Re: Office365 OAuth Not Working

Posted: Tue Sep 27, 2022 5:35 am
by emrekoc
https://helpdesk.xxxx.com/admin/oauth_providers.php

I'm using https and even bought an ssl certificate for this job
I am sharing the link with you privately.

Re: Office365 OAuth Not Working

Posted: Tue Sep 27, 2022 6:04 am
by Klemen
I see what the problem is now:

Go to Admin > Settings > General and change the "Help desk URL" setting to https version, save changes then try again.

Re: Office365 OAuth Not Working

Posted: Tue Sep 27, 2022 7:18 am
by emrekoc
finally got it thank you so much :)

Re: Office365 OAuth Not Working

Posted: Tue Sep 27, 2022 8:15 am
by emrekoc
Klemen wrote: Tue Sep 27, 2022 6:04 am I see what the problem is now:

Go to Admin > Settings > General and change the "Help desk URL" setting to https version, save changes then try again.
The account has been set up, but it does not open the e-mails I send as tickets, where could I have done something missing?

Re: Office365 OAuth Not Working

Posted: Tue Sep 27, 2022 8:21 am
by Klemen