Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-8066

Keycloak service documentation issues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0-alpha2
    • 2.0.0-alpha
    • None

      New cordova app + documentation - additional steps not in docs:

      • Add `* file:` to `default-src` in `Content-Security-Policy` meta tag in `index.html` - it can look like this: `<meta http-equiv="Content-Security-Policy" content="default-src * file: 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">`
      • `cordova plugin add cordova-plugin-inappbrowser`
      • add `<access origin="*" />` to `config.xml`
      • use e.g. browserify so you can use `require` statements
      • in `init` snippet there should be `require` instead of `import`

      New cordova app + documentation + android + self-signed certs - additional steps not in docs:

      In documentation there are no code examples for how to:

      • determine that user is authenticated (`authService.isAuthenticated()`)
      • get user profile (`authService.loadUserProfile().then(...).catch(...)`)

      In documentation http://docs.aerogear.org/aerogear/latest/identity-management.html#refreshing-the-authentication-token cordova example should be `authService.extract()...` instead of `authService.service.extract()...`

            mziccard Massimiliano Ziccardi
            jhellar@redhat.com Jan Hellar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: