Open benlabbeus opened 2 years ago
any solution for this ?
I'm also getting this, I'm running
"react-native-app-auth": "6.4.0",
"react-native": "0.66.3",
{
"message":"An error occured.",
"logMessage":"authentication failed: The operation couldn’t be completed. (org.openid.appauth.general error -3.)",
"error":{
"code":"authentication_failed",
"message":"The operation couldn’t be completed. (org.openid.appauth.general error -3.)",
"domain":"org.openid.appauth.general",
"userInfo":{
"NSUnderlyingError":{
"code":"1",
"message":"underlying error",
"domain":"com.apple.AuthenticationServices.WebAuthenticationSession",
"userInfo":{
},
"nativeStackIOS":[
"0 App 0x0000000100f9be54 RCTJSErrorFromCodeMessageAndNSError + 116",
"1 App 0x0000000100f9c0dc RCTJSErrorFromCodeMessageAndNSError + 764",
"2 App 0x0000000100f39154 __41-[RCTModuleMethod processMethodSignature]_block_invoke_2.129 + 144",
"3 App 0x0000000101304070 __151-[RNAppAuth authorizeWithConfiguration:redirectUrl:clientId:clientSecret:scopes:useNonce:usePKCE:additionalParameters:skipCodeExchange:resolve:reject:]_block_invoke.161 + 412",
"4 App 0x0000000100b34ae0 __85+[OIDAuthState authStateByPresentingAuthorizationRequest:externalUserAgent:callback:]_block_invoke + 496",
"5 App 0x0000000100b302f4 -[OIDAuthorizationSession didFinishWithResponse:error:] + 144",
"6 App 0x0000000100b3024c -[OIDAuthorizationSession failExternalUserAgentFlowWithError:] + 76",
"7 App 0x0000000100b3a074 __67-[OIDExternalUserAgentIOS presentExternalUserAgentRequest:session:]_block_invoke + 248",
"8 AuthenticationServices 0x00000001bd574148 D4D39DC5-9AF8-38E0-85B3-8BA783D6C2EF + 131400",
"9 SafariServices 0x00000001a14b4a80 5D41CE03-FECB-3CCA-A156-A380057B9EE3 + 207488",
"10 SafariServices 0x00000001a1596910 5D41CE03-FECB-3CCA-A156-A380057B9EE3 + 1132816",
"11 SafariServices 0x00000001a1567048 5D41CE03-FECB-3CCA-A156-A380057B9EE3 + 938056",
"12 CoreFoundation 0x000000018168e2f4 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 140020",
"13 CoreFoundation 0x00000001816abac4 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 260804",
"14 libdispatch.dylib 0x00000001039fa3b4 _dispatch_client_callout + 20",
"15 libdispatch.dylib 0x00000001039fde70 _dispatch_block_invoke_direct + 364",
"16 FrontBoardServices 0x00000001931def94 6FDEC0C3-E500-3E06-948E-E34BDA520801 + 49044",
"17 FrontBoardServices 0x00000001931de3d4 6FDEC0C3-E500-3E06-948E-E34BDA520801 + 46036",
"18 FrontBoardServices 0x00000001931e29e4 6FDEC0C3-E500-3E06-948E-E34BDA520801 + 63972",
"19 CoreFoundation 0x0000000181727020 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 765984",
"20 CoreFoundation 0x0000000181737ce0 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 834784",
"21 CoreFoundation 0x0000000181671fe8 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 24552",
"22 CoreFoundation 0x00000001816777f4 B2D21CFD-378C-36D5-BAF7-3F70599CFEFC + 47092",
"23 CoreFoundation 0x000000018168b3b8 CFRunLoopRunSpecific + 600",
"24 GraphicsServices 0x000000019d01b38c GSEventRunModal + 164",
"25 UIKitCore 0x000000018402b6a8 8388EB03-002B-3B35-A78A-6A022894292E + 5346984",
"26 UIKitCore 0x0000000183daa7f4 UIApplicationMain + 2092",
"27 App 0x0000000100b16e04 main + 104",
"28 dyld 0x000000010378da24 start + 520"
]
}
}
}
@maoapp or @blabz2007, have you found a solution?
This can be due to re-rendering of the component, Similar behavior can be observed if you call authorize
function twice without waiting for a response.
const session1 = authorize(config);
const session2 = authorize(config);
Is there a suggested fix for this issue?
Issue
I get the prompt once to log into my authorization server and it works. All reloads afterwards the prompt to login shows up for a split second, then I receive this error -
[Error: The operation couldn’t be completed. (org.openid.appauth.general error -3.)]
Environment
Using IdentityServer4 on iOS no expo
Any help greatly appreciated