Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error: AADB2C90118: The user has forgotten their password. #1014

Open
georgetaylorgdt opened this issue Aug 8, 2024 · 5 comments
Open

[Error: AADB2C90118: The user has forgotten their password. #1014

georgetaylorgdt opened this issue Aug 8, 2024 · 5 comments
Labels
needs-more-info This issue may not have sufficient information for a contributor to take action

Comments

@georgetaylorgdt
Copy link

georgetaylorgdt commented Aug 8, 2024

Issue

Hi, I am trying to implement Azure AD B2C Auth. I am trying to implement the full user flow, however,

On IOS: the web view just closes with the error: [Error: AADB2C90118: The user has forgotten their password.
On Android: the web view sort of just gets stuck.

Videos examples shown below.

I've seen another closed issue: #379

However, as you can see in this video that is not the case for me

Screen.Recording.2024-08-08.at.10.34.26.mov
Screen.Recording.2024-08-08.at.10.58.00.mov

Environment

  • Your Identity Provider: Azure
  • Platform that you're experiencing the issue on: both
  • Your react-native Version: e.g. 0.74.3
  • Your react-native-app-auth Version: e.g. 7.2.0
  • Are you using Expo? Yes
@carbonrobot carbonrobot added the needs-more-info This issue may not have sufficient information for a contributor to take action label Aug 15, 2024
@carbonrobot
Copy link
Contributor

@georgetaylorgdt Once you are redirected to your IDP login page, all that code happens on their server and RNAA code is not running there. I recommend checking your console logs to determine the error your IDP is having and double checking your IDPs configuration.

@georgetaylorgdt
Copy link
Author

Error: AADB2C90118: The user has forgotten their password is all it says along with a correlation id and a timestamp

@georgetaylorgdt
Copy link
Author

It does say access denied in the dev tools console log

@georgetaylorgdt
Copy link
Author

Error Object:
{
"error": {
"code": "access_denied",
"message": "AADB2C90118: The user has forgotten their password.\r\nCorrelation ID: 1deeca31-06d8-4279-9979-c0717aa73ade\r\nTimestamp: 2024-09-02 15:22:59Z\r\n",
"domain": "org.openid.appauth.oauth_authorization",
"userInfo": {
"NSLocalizedDescription": "access_denied: AADB2C90118: The user has forgotten their password.\r\nCorrelation ID: 1deeca31-06d8-4279-9979-c0717aa73ade\r\nTimestamp: 2024-09-02 15:22:59Z\r\n",
"OIDOAuthErrorResponseErrorKey": {
"error": "access_denied",
"error_description": "AADB2C90118: The user has forgotten their password.\r\nCorrelation ID: 1deeca31-06d8-4279-9979-c0717aa73ade\r\nTimestamp: 2024-09-02 15:22:59Z\r\n",
"state": "lKH_YujbhjYhWYaCTS_GYhO2MhnPxkPfpSPzdbhkkWU"
}
},
"nativeStackIOS": [
"0 testapp 0x0000000100bb549c RCTJSErrorFromCodeMessageAndNSError + 112",
"1 testapp 0x0000000100b59b58 __41-[RCTModuleMethod processMethodSignature]_block_invoke_2.73 + 152",
"2 testapp 0x00000001012b6bcc __192-[RNAppAuth authorizeWithConfiguration:redirectUrl:clientId:clientSecret:scopes:useNonce:usePKCE:additionalParameters:skipCodeExchange:iosCustomBrowser:prefersEphemeralSession:resolve:reject:]_block_invoke.93 + 444",
"3 testapp 0x000000010082dd68 __85+[OIDAuthState authStateByPresentingAuthorizationRequest:externalUserAgent:callback:]_block_invoke + 496",
"4 testapp 0x00000001008292f8 -[OIDAuthorizationSession didFinishWithResponse:error:] + 156",
"5 testapp 0x000000010082912c __62-[OIDAuthorizationSession resumeExternalUserAgentFlowWithURL:]_block_invoke + 48",
"6 testapp 0x0000000100833df4 -[OIDExternalUserAgentIOS dismissExternalUserAgentAnimated:completion:] + 400",
"7 askloyaltyapp 0x0000000100829070 -[OIDAuthorizationSession resumeExternalUserAgentFlowWithURL:] + 1368",
"8 testapp 0x00000001008339c8 __67-[OIDExternalUserAgentIOS presentExternalUserAgentRequest:session:]_block_invoke + 168",
"9 AuthenticationServices 0x00000001b86cd17c __102-[ASWebAuthenticationSession initWithURL:callback:usingEphemeralSession:jitEnabled:completionHandler:]block_invoke + 216",
"10 SafariServices 0x0000000196d2c9a4 -[SFAuthenticationSession safariViewController:hostApplicationOpenURL:] + 116",
"11 SafariServices 0x0000000196d791f8 -[SFAuthenticationViewController remoteViewController:hostApplicationOpenURL:] + 76",
"12 SafariServices 0x0000000196dc6544 -[SFBrowserRemoteViewController willOpenURLInHostApplication:] + 68",
"13 CoreFoundation 0x00000001804b4720 invoking
+ 144",
"14 CoreFoundation 0x00000001804b1a84 -[NSInvocation invoke] + 276",
"15 libdispatch.dylib 0x0000000180171978 _dispatch_client_callout + 16",
"16 libdispatch.dylib 0x00000001801758d8 _dispatch_block_invoke_direct + 380",
"17 FrontBoardServices 0x0000000186f6fad8 FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK + 44",
"18 FrontBoardServices 0x0000000186f6f9b4 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 196",
"19 FrontBoardServices 0x0000000186f6fb0c -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 24",
"20 CoreFoundation 0x000000018040ee48 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24",
"21 CoreFoundation 0x000000018040ed90 __CFRunLoopDoSource0 + 172",
"22 CoreFoundation 0x000000018040e500 __CFRunLoopDoSources0 + 232",
"23 CoreFoundation 0x0000000180408be8 __CFRunLoopRun + 768",
"24 CoreFoundation 0x00000001804084d4 CFRunLoopRunSpecific + 572",
"25 GraphicsServices 0x000000018ef2aae4 GSEventRunModal + 160",
"26 UIKitCore 0x00000001853d0a28 -[UIApplication _run] + 868",
"27 UIKitCore 0x00000001853d46b0 UIApplicationMain + 124",
"28 testapp 0x0000000100823044 main + 96",
"29 dyld 0x0000000103589544 start_sim + 20",
"30 ??? 0x00000001036920e0 0x0 + 4352188640",
"31 ??? 0x8121800000000000 0x0 + 9304859042612510720"
]
}
}

@carbonrobot
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-info This issue may not have sufficient information for a contributor to take action
Projects
None yet
Development

No branches or pull requests

2 participants