Office 365 Authentication with on-prem ADFS does not complete
My work email/address book uses Office 365, and I've been having some trouble authenticating recently. I believe I have everything configured correctly. When I reconnect to my network and my email and/or calendar goes to update, I'm presented with the following screen, since we use (AFAIK) an on-prem ADFS server for authentication:
If I log in with my username and password in that form, I do not receive any errors or anything, but the authentication request screen hangs on a blank window:
If click the little button, my browser opens a URL starting with https://login.microsoftonline.com/common/oauth2/nativeclient, then if I copy everything from that URL between code=
and &session_state
into the Evolution code box and click continue, the authentication succeeds:
This wouldn't be so bad, but everytime I come back online from offline, I have to repeat this process for each address book in my account, my task lisk, my calendar, etc. (I haven't counted, but it's something like a total of 6 or 7 times). It seems as though Evolution is not caching the token it receives or something, since I'd think it could re-use the same authorization code for all of these. It does not ask me to authenticate again until the next time I go offline and come back online.
Any ideas on how to debug this, or if I'm just doing something wrong?