- Edited
We've been using oauth to fetch emails from M365 now since it was first added to OSTicket.
We initially had problems with the tokens expiring until v18.1 and its been working fine since then up until 2 days ago.
I noticed that the tokens had expire so clicked submit to get a new token at which point I saw the error:
Email Mismatch: Expecting Authorization for ticket@emaildomain.com not username@emaildomain.com
OS ticket has not been changed, nor has the email address settings so I can only conclude that the way MS servers respond has been changed in some way.
I have seen other posts that are similar but not identical (eg https://forum.osticket.com/d/101874-email-mismatch-for-oauth-using-account-with-send-as-permissions suggesting editing the code ) but as ours has worked for all of the period since this ticket was logged despite similarities in email box configuration I don't think this is the same issue and as we have a number of email addresses that are processed the one alternative override in the code change suggestion would not work.
I'm going to continue investigating this but I'm posting it in case others are also having recent email/m365/o365 issues and can add something to this thread.
@KevinTheJedi Thanks for all your responses to the other threads. I'm working my way through them.