Interactive logon issue with Office 365
Brought to you by:
mguessan
When using interactive mode with Office 365 I get the dialog for to click to go the login page but the URL that loads says this:
https://login.microsoftonline.com/common/oauth2/nativeclient?error=access_denied&error_description=AADSTS50005%3a+User+tried+to+log+in+to+a+device+from+a+platform+(Unknown)+that%27s+currently+not+supported+through+Conditional+Access+policy.+Supported+device+platforms+are%3a+iOS%2c+Android%2c+Mac%2c+and+Windows+flavors.%0d%0aTrace+ID%3a+e4e75cc6-2bd7-4fd7-ba8f-4ba5ea892c00%0d%0aCorrelation+ID%3a+bdca668e-82ca-45ff-903e-c9f45722
Not sure how to get around this issue.
Your admins enabled conditional access. It seems that device detection is based on user-agent header.
You can try to switch to O365Manual and use your native browser or override user agent in DavMail with davmail.userAgent.
Related, is there a way to find out the user agent that 5.5.1 used by default? I see Edge added in this commit (https://github.com/mguessan/davmail/commit/f08c77b735d79c71bd0c65518db08f37cedf5dec); but am not finding what was provided to the server previously.