Page 1 of 1

Office 365 OAUTH configuration errors

Posted: Fri Apr 28, 2023 2:46 pm
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?

Re: Office 365 OAUTH configuration errors

Posted: Fri Apr 28, 2023 4:24 pm
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.

Re: Office 365 OAUTH configuration errors

Posted: Fri Apr 28, 2023 6:05 pm
by norrcomm
I have verified have set the correct URI and this error is still appearing.

https://prnt.sc/WQHNXNRGseM7

Image

Re: Office 365 OAUTH configuration errors

Posted: Sat Apr 29, 2023 12:32 am
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

Re: Office 365 OAUTH configuration errors

Posted: Sat Apr 29, 2023 2:34 am
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.