AzureAD / microsoft-authentication-library-for-objc

Microsoft Authentication Library (MSAL) for iOS and macOS
http://aka.ms/aadv2
MIT License
255 stars 141 forks source link

Interactive auth fails with error code 3: com.apple.AuthenticationServices.WebAuthenticationSession #2221

Closed ShmuelCammebys closed 3 weeks ago

ShmuelCammebys commented 4 weeks ago

It is a rare bug, but it happens often enough to cause an issue. Unsure what the solution is.

TID=1607680 MSAL 1.4.0 iOS 17.5.1 [2024-06-25 15:27:34 - 63CD1BFD-118A-4390-81A1-D702B8E18F4B] [MSAL] Interactive flow finished. Result (null), error: 3 error domain: com.apple.AuthenticationServices.WebAuthenticationSession
hieunguyenmsft commented 3 weeks ago

Seems like the code 3 is ASWebAuthenticationSessionErrorCodePresentationContextInvalid API_AVAILABLE(ios(13.0), macos(10.15)) = 3, and from Apple, I don't think MSAL able to help here. It would be best if you can provide a feedback item to them. Thanks