Keycloak OIDC Integration Setup Guide

In this guide, we will cover how to set up Descope as a federated Identity Provider (IdP) using OpenID Connect (OIDC) to implement authentication for applications that currently use Keycloak.

Configuring Keycloak SSO

Descope will act as the OIDC IdP so that Descope can be used for authentication while Keycloak remains the primary user management solution.

This will allow you to have the versatility and customizability of Descope Flows in the authentication process without having to migrate all users from Keycloak.

After installing Keycloak and running it on your local machine, navigate to the Identity Providers section of the menu.

Creating a new OIDC provider in Keycloak

Select Keycloak OpenID Connect to create a new identity provider. This is where the Descope Application information will be entered.

Now in the Descope Console, navigate to the Applications page and create a new application by pressing the create button in the top right. Make sure the new application that is being created is using OIDC.

Creating a new OIDC Application in Descope

After creating the Application in Descope, copy the Discovery URL from the Application settings and enter it as the Discovery endpoint in Keycloak.

Configuring the IdP in Keycloak

The Client ID and Client Secret must also be configured. Set your Descope application's Client Authentication to Confidential so that it has a Client ID and Client Secret. Then copy the Client ID and Client Secret from your Descope application page and paste them into Keycloak.

SSO is now enabled for Keycloak. Be sure to grant new users roles and permissions in Keycloak so that they can utilize the Keycloak console.

Log in screen with SSO

Get started by going to the Applications page in your Descope Console! You can read more about Federated Applications here.

If you have any other questions about Descope or our flows, feel reach to reach out to us!

Was this helpful?

On this page