Office 365 OAUTH configuration errors

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
norrcomm
Posts: 6
Joined: Fri Apr 28, 2023 2:29 pm

Office 365 OAUTH configuration errors

Post by norrcomm »

Script URL:
Version of script: 3.4.3
Hosting company: Vultr
URL of phpinfo.php: 8.2
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
OAUTH not working

Write your message below:
I purchased HESK yesterday and it is now configured.

I have configured OAUTH for fetching/sending mail via Office365.

When I try to test and validate my OAUTH configuration, this error message appears.

Image

When I try to access https://mysite.com/admin/oauth_providers.php page from my site, I et this error message.
Image

Anyone know the cause of this?
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Office 365 OAUTH configuration errors

Post by Klemen »

This is an issue at your Microsoft Azure set up.

For the "Redirect URI" you entered an "example.com" URL address, but you should enter YOUR Hesk URL address instead.

See https://www.hesk.com/knowledgebase/?article=110 > Part 2: register Hesk > Step 3 again.

Please repeat the registration and use the correct "Redirect URI" in the Microsoft Azure App registration panel.
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
norrcomm
Posts: 6
Joined: Fri Apr 28, 2023 2:29 pm

Re: Office 365 OAUTH configuration errors

Post by norrcomm »

I have verified have set the correct URI and this error is still appearing.

https://prnt.sc/WQHNXNRGseM7

Image
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Office 365 OAUTH configuration errors

Post by mkoch227 »

Could you double-check your helpdesk's general settings and see if the help desk URL is set to "http://www.example.com/helpdesk"? If it is, replace it with your actual help desk URL and then try saving OAuth settings again.

Image
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
norrcomm
Posts: 6
Joined: Fri Apr 28, 2023 2:29 pm

Re: Office 365 OAUTH configuration errors

Post by norrcomm »

Thanks for that I did the following below before I saw this :)

I coincidentally noticed in hesk setting php file generic setting shad generic settings so I manually updated it https://prnt.sc/TUtCDJq1SjKw and then the OAUTH connected.
Post Reply