Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-6798

Keycloak.js - allow to provide custom adapters

    XMLWordPrintable

Details

    Description

      What

      Currently the Keycloak JS Adapter only supports redirects/login/logout handlers to use localhost addresses for Cordova. This is an issue if you want to sign in via Keycloak in a Native Browser. The browser will try to redirect back to a localhost address, rather than the app via anAppIdentifier:// URI scheme. Cordova adapter for some of the use cases may be too simple and do not support more advanced use cases - users cannot extend adapter to provide this use cases.

      How

      We could extend existing cordova wrapper directly in the upstream codebase to allow custom redirects.

      Alternative will be to allow users to provide custom adapters:
      https://github.com/keycloak/keycloak-js-bower/blob/master/dist/keycloak.js#L48-L58
      This will allow adapters to provide alternative implementations like react native or more advanced Cordova examples.

      Happy to contribute that change or any suggestion that will be posted.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wtrocki@redhat.com Wojciech Trocki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: