# How to setup SSO in Sparkflows using Keycloak

**URL:** <https://community.sparkflows.ai/t/how-to-setup-sso-in-sparkflows-using-keycloak/227>\
**Category:** Setup & Configuration\
**Created:** [December 23, 2025, 11:57am UTC](https://community.sparkflows.ai/t/how-to-setup-sso-in-sparkflows-using-keycloak/227 "2025-12-23T11:57:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shad](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@Shad](https://community.sparkflows.ai/u/Shad)\
**Post date:** [December 23, 2025, 11:57am UTC](https://community.sparkflows.ai/t/how-to-setup-sso-in-sparkflows-using-keycloak/227/1 "2025-12-23T11:57:55Z")

</div>

## 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:

```auto
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:

```auto
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.
