So you have done ALL of the following and still have issues?
- Downloaded the new build of OAuth2 plugin from the osTicket download page.
- Replaced your existing auth-oauth2.phar file with the new one.
- You’ve made these changes in your code.
- You’ve restarted your web server (and PHP-FPM if you’re running it) to clear any server-side file caching. If using a hosting provider they will likely have additional file caching and if that’s the case reach out to ask how to clear said cache.
- Opened an incognito/private window.
- Navigated to your system email in osTicket.
- Clicked Remote Mailbox and clicked Config.
- Deleted the existing token (if one).
- Clicked IdP Config.
- Replaced the Scopes with
offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send
. - Submitted the popup.
- Logged in as the email you are configuring in osTicket.
- Consented to the permissions.
- Redirected back to the email in osTicket with a success banner.
If so then I’m not sure what’s happening and you would simply need to post everything you have so we can try to help you. I simply cannot replicate this.
Cheers.