Forum Stats

  • 3,873,717 Users
  • 2,266,632 Discussions


OracleJet Keycloak authentication

Zeta411 Member Posts: 5 Red Ribbon
edited Sep 2, 2022 5:12PM in Oracle JET

 have a oracleJet app , I am using key cloak for authentication.

app.keycloakAuth.init({onLoad: 'login-required' , adapter: 'cordova',})

This code seems to work fine for android, but in iOS, after the authentication, the control is not coming back to the app. The redirect URL http://localhost opens in safari with the message "Safari cannot open the page because it could not connect to the server".

I do have the URL http://localhost configured as valid redirect URL in key cloak,

I tried using the adapter: 'cordova-native' also, I still see the same error.

I also see the error message "null is not an object (evaluating 'ref.addEventListener')"

Can anyone tell how to fix this in iOS ?


  • Zeta411
    Zeta411 Member Posts: 5 Red Ribbon

    UPDATE: after installing cordova-plugin-inappbrowser I had some success, but now I see the following error

    2022-09-02 19:19:40.664365-0500 KeyDSEI[98975:14370084] [ProcessSuspension] 0x10f0058c0 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=98997, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement}

    2022-09-02 19:19:40.666254-0500 KeyDSEI[98975:14369812] Setting the WebView's frame to {{0, 0}, {414, 852}}

    2022-09-02 19:19:40.668160-0500 KeyDSEI[98975:14370084] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>

    Didn't find much info on how to add the entitlement Most of the suggestions include enabling Sandbox which is true for MacOS, for iOS, the sandbox is enabled by default.

    Can any one tell how to add the entitlements in Xcode for iOS app ?