Office365 OAuth Not Working

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
emrekoc
Posts: 5
Joined: Mon Sep 26, 2022 1:48 pm

Office365 OAuth Not Working

Post 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
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Office365 OAuth Not Working

Post 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
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
emrekoc
Posts: 5
Joined: Mon Sep 26, 2022 1:48 pm

Re: Office365 OAuth Not Working

Post 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.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Office365 OAuth Not Working

Post 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.
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
emrekoc
Posts: 5
Joined: Mon Sep 26, 2022 1:48 pm

Re: Office365 OAuth Not Working

Post by emrekoc »

finally got it thank you so much :)
emrekoc
Posts: 5
Joined: Mon Sep 26, 2022 1:48 pm

Re: Office365 OAuth Not Working

Post 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?
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Office365 OAuth Not Working

Post by Klemen »

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