Skip to content

Keycloak OpenID Authentication

dbeaver-devops edited this page Aug 31, 2026 · 1 revision

Note: This feature is available in Enterprise and AWS editions only.

Table of contents

Keycloak OpenID lets users sign in to CloudBeaver with their Keycloak accounts through OpenID Connect (OIDC). There's no separate set of logins to manage. You just enter your Keycloak server URL and realm, and CloudBeaver builds the sign-in, token, and logout URLs for you.

Before configuring Keycloak OpenID in CloudBeaver, make sure you've already configured the required client and settings in your Keycloak realm. This article covers the configuration in . For setup on the Keycloak side, see the official Keycloak documentation.

Configuration steps

Enabling Keycloak OpenID authentication

  1. As an administrator, go to Settings -> Server Configuration.

  2. Find the Keycloak OpenId option in the Authentication Settings section and activate it.

  3. Save the changes.

Adding an identity provider

  1. As an administrator, navigate to Settings -> Identity Providers.

  2. Click the + Add button.

  3. Fill in the following fields:

    Field Description
    Provider Type Select Keycloak OpenId from the dropdown menu
    ID Enter a unique identifier for the configuration
    Configuration name Enter a descriptive name for this configuration
    Description Provide a brief description of this identity provider configuration
    Icon URL Enter the URL of an icon to represent this provider
    Disabled Leave unchecked to enable this identity provider
    Client ID The client identifier registered in your Keycloak realm
    Client Secret The client secret associated with the client ID
    Server URL The Keycloak server base URL, for example https://keycloak.example.com
    Realm The name of the Keycloak realm that holds your clients and users
    Read Keycloak group information If checked, the groups scope is requested for team mapping. The Keycloak client must also be configured to include group membership in the groups claim.

    Important: Enabling Read Keycloak group information only requests the groups scope. You must also configure a group membership mapper for your Keycloak client (or a client scope that includes one) to add group information to the groups claim. Otherwise, can't retrieve the user's groups, and team mapping won't work.

  4. Click the Create button.

  5. Copy Redirect and Sign out links:

    1. Enter the newly created identity provider.
    2. Copy the Redirect link and the Sign out link.
  6. Update redirect URIs in Keycloak:

    1. In the Keycloak admin console, open your client under Clients -> [your client] -> Settings.
    2. Paste the copied Redirect link into Valid redirect URIs.
    3. Paste the copied Sign out link into Valid post logout redirect URIs.
    4. Click Save in Keycloak to finalize these configurations.

Tip: CloudBeaver derives the authorization, token, userinfo, and logout endpoints from the Server URL and Realm, so you don't enter them manually.

Logging in

  1. Go to the login screen.

  2. Select the Federated authentication method, labeled with the Configuration name you specified.

  3. Click the authentication method. You're redirected to the Keycloak sign-in page.

  4. Enter the username and password of your Keycloak account. You're redirected back and logged into CloudBeaver.

Mapping teams to Keycloak groups

You can associate CloudBeaver teams with Keycloak user groups, so members of a Keycloak group automatically get the matching team.

For creating and managing teams, see Teams.

  1. Enable Read Keycloak group information in the identity provider configuration.
  2. As an administrator, navigate to Settings -> Teams and open a team.
  3. In the Keycloak Group ID field, enter the unique ID of the Keycloak group you want to link to this team.

Use the group's unique ID from Keycloak, not its display name, to make sure the association stays stable if the group is renamed.

Important: The checkbox only requests the groups scope. For the group claim to actually appear in the token, add a group membership mapper to your Keycloak client (or a client scope that includes one). Without it, no group information reaches CloudBeaver and team mapping stays empty.

Importing users from Keycloak

You can import users from your Keycloak realm ahead of time, instead of waiting for each user to sign in. For the import steps, see User provisioning.

Before importing users, make sure the Keycloak client is configured with:

  • Client authentication enabled
  • Service accounts enabled
  • The service account has the view-users role from the realm-management client
  • A client secret configured in the identity provider settings

Note: You don't need service accounts for regular sign-in. Configure them only if you plan to import users from Keycloak.

CloudBeaver Documentation

Clone this wiki locally