Camel: Claim required credentials when authentication fails
I'm using evolution 3.36.4 with office365 via ews using oauth2 authentication. The mandatory security policy applied to my companies office365 accounts expires logins after 7 days. At which point you need re-authenticate.
Evolution works fine with the office365 account until the authentication expires. At which point it displays the error message at the top of the window
Failed to connect account “ACCOUNT NAME”. The reported error was “ACCOUNTNAME authentication failed”.
and stops connecting to office365.
There is no automatic display of the authentication window or anything displayed that looks like a prompt to initiate re-authentication. I would have expected that in such a situation that either the authentication window would load automatically or that there would be a button/link in the authentication failed message dialog that would trigger the authentication window.
I've found that if I go to; Edit -> Preferences -> Mail Accounts -> (select office365 account) -> edit -> Receiving Email and click the 'Fetch URL' button to the right of the 'Host URL:' field. That will force the authentication window to come up. At which point I can re-authenticate and office365 mail resumes working normally in Evolution. So evolution is confirmed as being able to re-authenticate if only something makes it bring up the authentication window.
Hopefully it would be possible to either add a button to bring up the authentication window to the authentication failed message. Or to automatically trigger the authentication window in such cases. Which would make handling re-authentication a lot more user friendly.