Trying to connect oAuth2 to my O365 tenant and I'm not having any luck. After enabling the OAuth plugin, I configured a new App registration in Azure, pulled a secret key, set the Redirect URI based on the information in osTicket, set the URLs in osTicket to the values in Azure, and while I was able to get it to authenticate successfully as seen from the backend logs in Azure, I'm getting this odd message: osTicket oauth2 Email Mismatch: Expecting Authorization for [EmailAddress]. Not sure how to debug but would be happy to.
Also, just as a note, when you add an Instance under Plugins > Oauth2 Client, it only shows up there, you can't apply or link it to an e-mail account. Instead, you have to set it up from scratch from within the E-mails tab and selecting the OAuth2 - Microsoft option then selecting Config. I would expect to be able to see the created Instances as drop-down selectable options from within the Remote Mailbox setup.