I have successfully upgraded our instance to v.17 and enabled the OAuth2 plugin. Followed the instructions for configuring the plugin under Email settings > Remote Mailbox, and received a token as seen in the Token tab.

By default, email fetching is set to disabled. When I select Enable, it loads for a second and then I receive the errors:
- Unable to update this email. Correct any errors below and try again.
- AUTHENTICATE failed.

I don't see any errors indicated on the page. I've recreated the application in the Azure portal with the correct permissions and just can't seem to get fetching to work. I have an unread email in the account inbox that isn't getting pulled.
Any suggestions would be helpful. I think I'll need to revert back to basic auth for now, since it seems to be working still.
OS: Ubuntu 20.04
osTicket Version v1.17 (1d8b790) — Up to date
Web Server Software Apache
MySQL Version 5.7.39
PHP Version 8.0.24