Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13819

iPhone in-app browser freezes after send auth request to keycloak server

    XMLWordPrintableJSON

    Details

      Description

      ios in-app browser of cordova-plugin-inappbrowser freezes screen after send auth request to keycloak server during test on physical iphone 6. in-app browser seems to close prematurely before receiving response from keycloak.

      platform: ios
      ionic-angular": "3.8.0, cordova-ios": "~4.5.3", cordova-plugin-inappbrowser": "^1.7.2, keycloak-js: "3.4.0"

      keycloak client in ionic app:

      static keycloakConfigLoginSwitch = {
       'url': ENV.URL.authServer,
       'realm': ENV.INSTANCE.realm,
       'clientId': 'theClientId'
      };
      
      static initUsingLoginSwitch(): Promise<any> {
       let keycloakAuth: Keycloak.KeycloakInstance = Keycloak(KeycloakService.keycloakConfigLoginSwitch);
       KeycloakService.auth.loggedIn = false;
      
      return new Promise((resolve, reject) => {
       keycloakAuth.init(\{ onLoad: 'login-required', checkLoginIframe: false })
       .success((loggedIn: boolean) => {
       // IN APP BROWSER WINDOW FREEZES
       if (loggedIn) {
       // next steps
       } else {
       reject('Keycloak did not authenticate client');
       }
       })
       .error((error) => {
       reject(error);
       });
       });
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                surajpindoria Suraj Pindoria
                Reporter:
                jstein125 Jens Stein
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: