Child pages
  • Instructions to setup the OIDC flow

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Install following bundles to http://localhost:8080/system/console/bundles

    NameVersion
    net.minidev.accessors-smart1.2
    org.objectweb.asm5.2
    com.github.stephenc.jcip.annotations1.0.0.2-SNAPSHOT
    net.minidev.json-smart2.3
    com.nimbusds.nimbus-jose-jwt5.12.0
    lang-tag1.4.3
    oauth2-oidc-sdk5.62


  2. Install the OIDC Handler bundle https://github.com/apache/sling-whiteboard/pull/14
  3. Install the Sling instance in the Google API. (Refer:  https://developers.google.com/identity/protocols/OpenIDConnect)
    1. callbackURL : "http://localhost:8080/auth/oidc"
  4. Replace google_client_id, google_client_secret in Util.OPConstant Class with the provided client ID and Client Secret.
  5. Start the server
  6. Go to http://localhost:8080/system/console/configMgr
  7. Select " Google - OpenID Connect Configuration" and fill the required values and save.
  8. Go to localhost:8080/auth/login
  9. Then you will be redirected to Google login page. Give your credentials and consent when required.
  10. If the authentication is successful you will be successfully logged in to Sling.