Open georgetaylorgdt opened 3 months ago
@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.
Error: AADB2C90118: The user has forgotten their password is all it says along with a correlation id and a timestamp
It does say access denied in the dev tools console log
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" ] } }
Could it be related to this issue with legacy policies?
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: https://github.com/FormidableLabs/react-native-app-auth/issues/379
However, as you can see in this video that is not the case for me
https://github.com/user-attachments/assets/ee052994-440f-4283-8bee-914a51914bdb
https://github.com/user-attachments/assets/97af5c62-4275-4556-90c8-b81e0823dba3
Environment
Azure
both
react-native
Version:e.g. 0.74.3
react-native-app-auth
Version:e.g. 7.2.0