How to setup SSO in Sparkflows using Keycloak

Step 1 : Log in to Keycloak

  1. Determine the Sparkflows URL you will use.
  2. Navigate to the Keycloak web UI and log in with your admin credentials.
  3. Server Details:
Server: https://keycloak.dev.acme.com/ 
Username: admin Password: ******************

Step 2 : Select UA Realm and View Clients

  1. From the left drop-down menu, select the UA Realm.
  2. Click on Clients to view the list of currently registered clients.

Step 3 : Create and Configure the Auth Client

  1. Create a new client in the master realm or choose an existing realm and create a client.
  2. Navigate to the Settings section.
  3. Scroll down and add the Sparkflows OIDC callback URL.The format of the url is as follows:
https://<sparkflows-host>/login/oauth

Step 4 : Retrieve Client Credentials

  1. Go to the Credentials section to copy the Client Secret.
  2. Copy the Client ID, Client Secret, accessTokenUri, userAuthorizationUri, and userInfoUri.These details will be used in the Sparkflows application properties.