Configuring OpenID Connect (OIDC) Integration with Keycloak - Rafay Product Documentation

OpenID Connect (OIDC) Integration

Follow the steps documented below to integrate your Org with an OIDC-compliant Identity Provider (IdP) such as Keycloak for Single Sign On (SSO).

Important
Only users with "Organization Admin" privileges can configure SSO in the Web Console.


Step 1: Create IdP in Web Console

The remaining fields: Client Secret, OP Domain URL, and Group Attribute Name must be populated after configuring the corresponding Keycloak application and retrieving these details from Keycloak.

Once these values are available, return to this page, complete the remaining fields, and then proceed with the setup.

Important

After completing the IdP configuration steps, the Redirect URL is generated in the Web Console. This Redirect URL must be added in the Keycloak Valid Redirect URIs field when creating the OIDC client.


Step 2: Configure Keycloak App in Keycloak

Step 3: Capture Client Credentials

🚨 Important: Ensure that the OP Domain URL includes the protocol prefix — http:// or https:// — to make it a valid URL. The process cannot proceed without a properly formatted URL.

Once saved, the OIDC app is configured in Keycloak.


Step 4: Creating the groups client scope


Step 5: Adding the Group Membership Mapper

Configure the mapper with the required settings:

Note: In the group membership mapper details, the token claim name must match the group attribute name configured in Step 1 of the controller setup.

The client scope includes group mappers. Similarly, add email and name mappers (given name and family name) to the client scope.


Step 6: Configuring client scopes

Click the Client Scopes tab and ensure that the email, profile, and the configured group client scopes from Step 4 are available. If they already exist, verify that they are assigned to the client.


Step 7: Webhook Configuration (Optional)

In the Web Console, configure the webhook if required, and click Save & Exit.

Once the configuration is complete, a verification email is sent to the admin email ID specified on the IdP Configuration page. Complete the verification before users can log in with OIDC

Note: On successful configuration, create a user and assign the user to the appropriate group in the IdP application.


Troubleshooting

Scenario 1: Required Scopes Not Configured in Keycloak

The IdP is configured in the Web Console, and the OIDC client is created in Keycloak. However, required scopes such as email, profile, and the custom group-mapping scope are not added to the client.

Error Message:

Resolution: