- Edited
!!! ATTENTION EVERYONE !!!
A new build of the OAuth2 plugin with full support for all types of emails is now live on the downloads page.
** IMPORTANT NOTES: **
- This requires you to apply a patch for the core codebase.
- After installing the new build of plugin you should update all emails using OAuth2 just to be certain you are up-to-date.
- If you are currently using the un-PHARed plugin make sure you update the database and set the
install_path
andisphar
values back to their original values (ie.plugins/auth-oauth2.phar
and1
respectively).
Follow the below steps to ensure you are up-to-date with the Microsoft changes:
- Login to osTicket in incognito/private browsing window (repeat for each email to prevent authorizing the wrong account each time)
- Click on a system email with OAuth2 configured
- Click Config in Remote Mailbox tab
- If using hared mailbox/resource email/alias email ensure the Strict Matching checkbox is disabled (unchecked) in the Info tab
- Fully replace the Scopes value with
offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send
- Submit the popup
- Login as the email itself -OR- if using shared mailbox/resource email/alias email sign in to the Service Account/User Account that has full Send As and Read and Manage permissions to the mailbox
- Consent to the requested permissions
- Once complete you should be redirected back to osTicket with a success banner. If however you are using a shared mailbox/resource email/alias email and you get an error about mismatching emails on the first submission, simply resubmit the popup and it should go through the second time.
- Repeat these steps for the Outgoing SMTP tab if it has separate OAuth2 Authentication configured (ie. if SMTP Authentication is set to "OAuth2 - Microsoft")
Once you have a new token you should be good to go.
Just to note, a new set of releases for both 1.17.x and 1.18.x will be released soon that will contain the above core codebase patch.