Same here. Can't find the combination to make this work.
OAuth2 Microsoft Not Working
We are releasing rc2 soon as well as an updated plugin so stat tuned.
Cheers.
- Edited
KevinTheJedi
The authorization/token endpoint URLs are correctly v2 by default, just the API URL (Resource Details Endpoint) is by default 1.0. Although setting it to 2.0 doesn't help either.
I think the plugin should be updated to use Graph API/scope since Outlook V2.0 REST endpoint is also deprecated and will be decommissioned in November 2022. Source: https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/use-outlook-rest-api
So the URLs in scope should be https://graph.microsoft.com/IMAP.AccessAsUser.All https://graph.microsoft.com/POP.AccessAsUser.All https://graph.microsoft.com/SMTP.Send, and Resource Details Endpoint/User Details URL should be https://graph.microsoft.com/v1.0/me.
I'm having the same issues as @jerer, do someone got this working?
@KevinTheJedi do you know when are we getting RC2?
Thank you! Will be waiting here!
Tried, but not working.
On the Endpoints list at azure i dont get OAuth 2.0 authorization endpoint (v2) with the tenant-id mine says: https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize
But i tried with the tenant-id and it didn't work either.
Basically the URLs it gives you when you go to Enterprise Applications and click Endpoints at the top.
Cheers.
Yep, that’s what I did @KevinTheJedi
When I pulled apart the .phar file, it has v1.0 manually set in the configuration. I saw the same thing but I just changed it to v2.0. When I tested I used an in-private window and logged in with my login to the osTicket but used the O365 account for the e-mail address, it still gives the error message so I think there's something wrong with the checks, plus it doesn't even say what the wrong e-mail address is in the error. Like others, it shows successful on the Azure side.
We have changes coming soon that should reflect the appropriate URLs and scopes. Stay tuned!
Cheers.
Fyi, for now here is a workaround for this issue https://forum.osticket.com/d/96893-basic-authentication-retirement-for-legacy-protocols-in-exchange-online/70
Hoping for new plugin soon (and for clarity by Microsoft )
Our office is also using osTicket for our customer service and IT departments and Microsoft O365 for our email. We're very interested in getting this to work as well. Please let me know if there's anything I can do to help move this plugin along.
We're interested as well as a new OSTIcket setup. I just stumbled upon IMAP etc going away October 1 and we need to have this setup for us to use OSTicket before that date.
KevinTheJedi do you have a ETA for the updates?
It's not ideal for me to keep posting updates every day. Please follow the copious threads on here or follow our github repo for updates.
Cheers.
Someone I know pointed out that 1.17rc1 includes "modern authentication" https://github.com/osTicket/osTicket/releases/tag/v1.17-rc1. I'm not sure about the relationship of this effort to 1.17 but I'm hopeful we can either apply a fix to 1.16 or migrate to 1.17 in time.