-
Notifications
You must be signed in to change notification settings - Fork 80
Description
Description
I am using flutter_web_auth_2 as part of oauth2_client (v3.3.0) and am authenticating to a Microsoft EntraId application. This works fine when entraID requests approval via a Microsoft Authenticator notification, but if I choose the Microsoft "Face, fingerprint, PIN or security key" option and then use the saved passKey, _cleanUpDanglingCalls() is called and I get a "User canceled login" response, which oauth2_client turns into an HTTP 404 Not Found error.
To Reproduce
accessTokenResponse = await getTokenWithAuthCodeFlow(
clientId: clientId,
scopes: scopes, // openId, email, offline_access, profile
authCodeParams: {'login_hint': emailAddress},
webAuthOpts: {'preferEphemeral': true});
Expected behavior
successful authentication
Screenshots
N/A
Device (please complete the following information!)
- Device: Android Moto G86
- OS: Android 15
- Browser: Chrome and Edge
flutter_web_auth_2version: 3.x-without-v1
Additional context
If there was a way to enable logging to see what requests we made to EntraId, I would be happy to help diagnose further.
Checklist
- [*] I have read and followed the entire troubleshooting guide and it has not provided the solution I need.
- [*] I have provided all the information I can (incl. auth URL etc.)