Plane OIDC SSO with Keycloak

How to use a Keycloak realm as the OpenID Connect provider for self-hosted Plane, with the client setup, claims, group sync and logout decisions your team has to make before go-live.

On this page

How Keycloak signs staff into self-hosted Plane over OIDC

An organization that already runs Keycloak usually wants staff to sign in to self-hosted Plane with their company credentials, not a separate Plane password. The integration uses OpenID Connect with Keycloak as the identity provider and Plane as the relying party: Plane redirects the user to a Keycloak realm, Keycloak authenticates them, and Plane receives an ID token and user details back through a callback. Before you build anything, confirm the licensing path. SSO on self-hosted Plane is listed on the Pro plan and above, so a Community install must first move to the Commercial Edition, which uses a license key and counts seats by paid roles. The Plane editions and versions documentation explains the switch, and the Plane pricing page shows which plans include SSO. Get the seat count and plan confirmed in writing before the identity work starts.

The Plane-side settings, including the exact callback path, the sign-in and logout fields, and where client credentials are entered in the instance administration area, are not part of the facts this page relies on. Copy them from Plane's current self-hosting documentation for the version you run, and check them against the running instance rather than a screenshot or a blog post. Plane's self-hosting overview is the starting point for your version. Keep the Plane instance's public base URL identical in Plane's settings and in Keycloak's client configuration, because a mismatch in scheme, host or path is the most common cause of failed redirects. Confirm the same with your security team before you go live, and keep at least one local admin account available until SSO has been tested end to end.

What you need in place before configuring Keycloak for Plane

Plane OIDC SSO with Keycloak depends on four things being settled before anyone opens an admin console: the Plane edition and license, the Keycloak release and database, the hostnames both products will use in browser redirects, and a named person who owns the realm. Gaps in any one of them tend to surface later as failed sign-ins or stalled change requests.

Plane edition and SSO license

OIDC is a paid feature on self-hosted Plane, available on the Pro plan and above. A self-hosted Community install must switch to the Commercial Edition before a license key can unlock it. Confirm with Plane which plan covers your seat count and that the license key on your instance lists SSO before you plan the rollout. Ask who holds the license renewal, since a lapsed key changes what the instance can do.

Plane editions docs

Keycloak release and version pin

Plan around the current Keycloak release, 26.8.1, published October 13, 2026. Keycloak ships four minor releases a year, and breaking changes in minor releases are opt-in, so record the exact version you deploy and the upgrade window you will follow. Pin the version in your deployment manifests so that a container tag or operator update does not move the realm to a new release without a change record.

Supported production database

Keycloak should run against a supported production database, such as PostgreSQL 14 to 18, rather than the bundled development file database. Confirm that the database is reachable from every Keycloak node, that backups cover it, and that its high availability design matches the Keycloak topology you choose. Realm configuration, client secrets and user records all live there, so the database owner belongs in the same planning conversation as the realm owner.

Keycloak database guide

Public HTTPS hostnames for both products

Plane and Keycloak must each have a stable HTTPS hostname that browsers can reach, because the OIDC flow redirects the user between them. Decide the Keycloak issuer hostname first, since it appears in every token and in the endpoints Plane is configured with. Check that the certificate chain is trusted by the browsers and by Plane's backend, which calls Keycloak directly. Changing either hostname later means updating redirect URIs and the issuer together.

Named realm owner and change process

Assign one named person to own the Keycloak realm, the Plane client and the claim mappers. That owner approves changes to redirect URIs, client secrets and the groups claim, because each of these can lock out users or expose group membership. Agree who can administer the realm, where admin access is audited, and how the break-glass admin account in Plane is kept outside SSO. Without a named owner, realm changes tend to be made in the console with no record.

Licensing and vendor support choice

Keycloak is licensed under Apache 2.0 and is a Cloud Native Computing Foundation incubating project, so the community build can be run without a license fee. If your organization needs a vendor-supported distribution with a support contract, Red Hat build of Keycloak is Red Hat's supported distribution based on the open source project and replaces Red Hat Single Sign-On. Decide which route you need before the build starts, since it affects patch sources and the support terms you rely on during incidents.

Keycloak project site

Where the browser, Plane, Keycloak and the directory sit in a login

The login starts in the user's browser, which Plane sends to Keycloak's authorization endpoint for the realm. After the user authenticates against Keycloak's user store or a federated directory, Keycloak returns an authorization code to the browser, and the browser delivers it to Plane's callback URL. Plane's backend then calls Keycloak's token endpoint directly, server to server, and reads the email and groups claims from the ID token it receives. Check that the callback is reached over the network path you expect and that the groups claim is present in that token.

Authorization code login between the browser, Plane, and the Keycloak realm.

Configure the Keycloak client and Plane in the right order

This sequence builds the Keycloak side first, then connects Plane, so each check confirms one link before the next. The result is a confidential client that issues an ID token carrying a verified email and a groups claim, and a logout that returns the user to Plane.

  1. Create or choose the Keycloak realm

    A Keycloak administrator creates a dedicated realm for Plane users or selects an existing workforce realm that already holds the accounts Plane should accept. Keeping Plane's users in the realm your identity team governs means account disabling and password policy also apply to Plane sign-in. Confirm the issuer value and the endpoint list with Plane's SSO documentation for your version. Done when the realm's OpenID configuration URL opens in a browser and lists the issuer, authorization, token, userinfo and end-session endpoints.

  2. Create a confidential OpenID Connect client

    In the Keycloak admin console, create an OpenID Connect client for Plane and turn on client authentication so the client is confidential and has a client secret. Enable the standard authorization code flow and leave implicit and direct access grants off unless Plane's documentation for your version requires them. Done when the client appears in the clients list with client authentication enabled and the Credentials tab displays a secret.

  3. Set redirect and post-logout URIs exactly

    Enter the callback URL and post-logout redirect URL that Plane's self-hosting SSO documentation specifies, built from the public base URL users type in their browser. Match scheme, host, port and path character for character, including any trailing slash, because Keycloak rejects any mismatch. Done when a test authorization request reaches Plane's sign-in page without a redirect_uri error from Keycloak.

  4. Copy the client secret into Plane securely

    Copy the client secret from the Credentials tab and enter it in Plane's SSO settings, along with the issuer URL and client ID, using the location your Plane version's documentation names. Store the secret in the secrets manager your platform team already operates, and keep it out of Git repositories, tickets, chat threads and plain-text Compose or Helm values files. Done when Plane saves the SSO configuration without errors and a search of your repositories and deployment logs finds no copy of the secret.

  5. Add an email claim mapper

    Add a mapper to the client that places the user's email address into the ID token and userinfo response under the claim name Plane expects, using Keycloak's built-in email property mapping. A claim name mismatch leaves the email empty at sign-in, so check the name against Plane's documentation. Set the email as verified only if your directory verifies it. Done when a test login returns an ID token whose email claim matches the Keycloak user's email exactly.

  6. Add a groups claim mapper

    Create a group membership mapper that adds group names to the ID token under the claim name Plane reads for group mapping. Decide whether group paths or short names are required by Plane's group sync rules, and confirm that choice before you roll out. Limit the mapper to groups intended for Plane so unrelated memberships do not appear in the token. Done when a user in a test group shows that group in the decoded ID token and a user outside that group does not.

  7. Test one login and one logout

    Sign in with a non-administrator test user and decode the ID token in a non-production environment, using a local JWT inspection tool instead of a public online decoder. Check the issuer, audience, expiry, email and groups claims. Keep a separate local Plane admin account available for recovery before you disable password login. Then sign out of Plane and confirm that the Keycloak session ends through the end-session endpoint and the user lands on the post-logout URL. Done when login and logout both behave as expected for two test users.

Map Keycloak claims and groups to Plane identity fields

This table pairs each Plane identity field with the Keycloak source that should populate it, the claim or attribute name to configure, and what to confirm before go-live. Read it as a checklist: every row needs a test login with a real Keycloak user before you rely on it. The main takeaway is that the email claim and a groups claim tested with a user in two or more groups carry most of the risk in this integration.

Plane fieldKeycloak sourceClaim or attribute nameWhat to confirm
Login identifier (email)User email attribute, mapped through the email scopeemail (confirm whether email_verified is also required)Confirm with Plane's OIDC documentation which claim Plane reads as the login identifier, and that the value matches the address users already sign in with.
Display nameFirst and last name on the user profilegiven_name and family_name, or nameConfirm which name claims Plane expects and whether it falls back to a single name field when the split fields are empty.
Groups for group syncGroup membership mapper on the client scopegroups (illustrative name; use the key Plane expects)Test with a user in two or more groups and check that every group appears as a separate value in the token before enabling group sync.
Role or access attributeUser or group attribute, if Plane reads a role claimAttribute name set by your mapper (to be confirmed)Confirm whether Plane reads roles from a dedicated claim or only from groups, and decide which Keycloak source is authoritative to avoid conflicting values.
Token claim deliveryClient scope assigned to the Plane clientMapper included in ID token and userinfo responseDecode a sample ID token and the userinfo response to confirm the claims appear where Plane reads them.

Harden the Keycloak client and the Plane login path

The Keycloak client is the trust point between Keycloak and Plane, so its settings decide who can sign in and where tokens can go. The cards below cover the client itself, the transport around it, the recovery path if Keycloak is unavailable, and the people who can change the realm.

Confidential client with a rotated secret

Configure the Plane client in Keycloak as a confidential client with client authentication on, so Plane authenticates with a client secret when it exchanges the authorization code. Store the secret in your secrets manager and pass it to Plane's configuration, not into a shared file. Set a rotation schedule and confirm, before go-live, how you will change the secret in both Keycloak and Plane without a sign-in outage. Keep the secret out of tickets and chat logs.

Keycloak docs

TLS on both hostnames

Serve Keycloak and Plane over HTTPS with certificates that your browsers and the Plane backend both trust. The Keycloak issuer URL, the token endpoint and the Plane public URL must all use the hostnames you intend to keep, because mismatches cause redirect and token validation failures. Check that Plane's backend can reach Keycloak's discovery document over TLS, including any internal certificate authority chain. Confirm the production configuration guidance for proxy and hostname settings before exposing either service.

Production configuration

Minimal redirect URIs without wildcards

List only the exact callback and post-logout URLs that Plane uses, one per environment, and avoid wildcard patterns such as a trailing asterisk on the host. A broad redirect rule lets an attacker who controls a path under your domain receive authorization codes. Review the list after each Plane upgrade or hostname change, since a new callback path can be added without anyone noticing. Keep web origins equally narrow.

Break-glass admin independent of Keycloak

Keep a local Plane admin account with a strong, separately stored password and a documented recovery procedure, so an operator can still reach the instance if Keycloak is down, misconfigured or its realm is locked. Test that this account works before you turn off password login. Restrict its use to emergencies, and review each use in your audit trail. Confirm how your Plane edition handles instance administration so this path is not removed during a later change.

MFA enforced in the Keycloak realm

Require multi-factor authentication in the Keycloak realm's authentication flow for users who sign in to Plane, rather than relying on each user to enable it. Plane trusts the identity Keycloak returns, so a weak first factor in Keycloak is a weak login to Plane. Decide which groups must complete MFA, test enrollment for new users and confirm recovery steps for lost devices. Keep a record of the flow configuration as part of your change evidence.

Admin console limited to named operators

Restrict access to the Keycloak admin console to named operators who need realm changes, and remove shared administrator accounts. Route admin logins through MFA and monitor realm and client configuration changes. If you deploy with the Keycloak Operator, set operator updates to manual approval, as its documentation strongly recommends, so a new operator release cannot change the Plane client or realm without review. Enable Keycloak metrics so unexpected logins or failures are visible to the team that runs them.

Metrics documentation

How a groups claim drives access in Plane

A groups claim in the token does not give anyone a Plane role. Plane needs an explicit mapping from Keycloak groups to workspace roles and project membership, and that mapping is a separate design decision that should be settled before go-live. Decide which groups map to which workspace role, which project memberships each group creates, and what a user with no mapped group receives. The safe default is no access until a mapping matches. Name an owner for the mapping and record it alongside the realm configuration, so a later change in Keycloak does not silently widen what engineers or auditors can see in Plane.

The main design choice is how many groups to create. A small number of broad groups, such as one per department, is simple to administer and easy to explain in an access review, but it tends to grant more project access than any one person needs. Many narrow groups, such as one per project and role, give precise access but multiply the group records in Keycloak and the mappings that must stay correct as teams change. A common compromise is broad groups for workspace roles and narrower groups only for projects that hold sensitive work. Test the chosen design with a few pilot accounts from each group before it reaches the full user base.

Removing a user from a Keycloak group changes nothing in Plane on its own. Access changes only when Plane's group sync runs, so the team must confirm from Plane's documentation when sync happens and whether removed memberships are dropped automatically. Existing Plane sessions also stay valid until they expire, so offboarding should disable the Keycloak account as well as remove group membership. Until the sync timing is confirmed in a test instance, avoid promising any offboarding window to security or HR stakeholders.

Common failures when Keycloak and Plane sign-in do not match

This table pairs each sign-in symptom with its usual cause and the configuration check that confirms it. Work down the rows in order, because a redirect or secret problem often shows up first as a generic failure at the callback. Each fix names the setting to compare on both the Keycloak client and the Plane side, so you can verify rather than guess.

SymptomLikely causeFix and configuration check
Keycloak shows an invalid redirect URI error at sign-inThe redirect URI registered on the Keycloak client does not match the callback Plane sends, including scheme, host, port or trailing slashCopy the callback URL from the Plane OIDC settings and compare it character by character with the valid redirect URIs on the Keycloak client. Confirm the public URL in Plane matches the address users type in the browser.
Token exchange fails with invalid client credentialsThe client secret was pasted with a leading or trailing space or a line break, or the secret was regenerated in Keycloak after Plane was configuredRegenerate or reveal the secret on the Keycloak client's Credentials tab, paste it into Plane without surrounding whitespace, and save again. Confirm the client is set to confidential client authentication.
Sign-in completes but Plane reports a missing email or cannot create the accountThe email claim is absent from the ID token or access token, or it is named differently from the attribute Plane readsCheck the client scopes that include the email claim, and confirm the mapper adds email to the ID token. Compare the claim name Plane expects with the one in a decoded token from a test user, and check that the user has a verified email in Keycloak.
Group-based access works for some users but not othersThe groups mapper is missing from a client scope in use, some users are not members of the groups Plane maps, or group membership is inherited differently from direct membershipDecode the ID token for an affected user and confirm the groups claim is present and lists the expected group paths. Check whether the mapper uses full group paths, and confirm the user is a direct member of the group rather than relying on a parent group.
Login fails intermittently with token not yet valid or expired errorsClock skew between the Keycloak host, the Plane host and the browser, so issued-at or not-before times fall outside the accepted windowConfirm that time synchronization (NTP) is running on every server involved and that the Keycloak and Plane clocks agree. Retest after correcting drift before changing any client settings.
Plane fails to connect to the Keycloak endpoints over HTTPSThe Plane container does not trust the certificate authority that signed the Keycloak certificate, often because an internal CA is usedAdd the internal CA certificate to the trust store used by the Plane containers, then confirm the discovery document URL loads from inside the Plane container, not only from a workstation.
User signs out of Keycloak but remains signed in to PlanePlane's session is independent of the identity provider session, and no logout redirect or front-channel logout is configured for the Plane clientConfirm the post-logout redirect URI is registered on the Keycloak client and that Plane's logout path calls the Keycloak end-session endpoint. Test by signing out in Plane, then opening Plane in a new browser session to confirm it asks for sign-in again.
Users are signed out of Plane unexpectedly after a short periodThe Keycloak realm session or token lifetimes are shorter than the Plane session settings expect, or refresh behavior differs from what the team assumedCompare the access token and SSO session idle and max values in the Keycloak realm with the session settings in Plane. Adjust one side at a time and retest with a standard user account.

Running Keycloak on Kubernetes with the Operator or on servers

The Keycloak Operator is the recommended way to run Keycloak on Kubernetes. Install it through Operator Lifecycle Manager, which is the documented recommended method, or with kubectl or the experimental Helm chart. Once the operator runs, it manages the Keycloak server and the KeycloakRealmImport, KeycloakOIDCClient and KeycloakSAMLClient custom resources. Declaring the Plane client as a KeycloakOIDCClient resource means its redirect URIs, client settings and secret references live in Git, so changes go through review and can be rolled back like any other manifest.

  • Client as code: Keep the Plane KeycloakOIDCClient in the same repository as the rest of your platform manifests, and review every change to redirect URIs and client scopes.
  • Manual approval for updates: The operator documentation strongly recommends manual approval mode, so an operator update does not upgrade Keycloak without a planned change window.
  • Supported production databases: Use one of the supported production databases, such as PostgreSQL 14 to 18 or a managed equivalent, rather than the development-only dev-file database.
  • High availability decision: Choose between a single cluster spread across availability zones, multi-cluster v2, or the deprecated v1 design. Both supported designs need a synchronously replicated database.
  • Schema migration policy: Keycloak migrates its schema at startup by default. Large deployments may prefer manual migration, which the upgrading guide suggests.

Before go-live, confirm with your platform team which operator version your cluster supports and that the database backing the realm is synchronously replicated across the failure domains you plan to use.

Questions buyers ask before configuring Keycloak for Plane

What drives the cost and effort of connecting Keycloak to Plane?

Effort follows the design choices more than the Plane setting itself. The main drivers are how the Keycloak realm is structured, how many groups need to map to Plane roles and project access, whether the Plane instance must move from the Community Edition to the Commercial Edition, and where Keycloak itself is hosted and how it is backed up. Each of these may involve a different party: your own staff, your Keycloak operators, your Plane administrators or a partner. Ask any quote to break the work into realm and client setup, claim and group design, Plane edition change, testing with a pilot group, and handover, and to say which items are one-time and which recur through Keycloak and Plane maintenance.

How long does a Keycloak to Plane OIDC integration usually take?

The duration depends mainly on what is already in place. If the Keycloak realm, its users and its group model are settled and the Plane instance is running, the core OIDC client setup is a comparatively small part of the work. Time grows when group sync needs a clean group design, when the Plane edition change must be planned around a live workspace, or when security and audit teams need evidence before approving the rollout. Ask for a timeline that separates the design, build, pilot and cutover phases, and confirm which of these depends on your change windows and approval steps.

Can an internal team set up Keycloak as the OIDC provider for Plane alone?

An experienced team that already runs Keycloak and administers Plane can often do the core work in-house, because the confidential client, redirect URIs, email claim and logout settings are documented and bounded. The harder parts are usually the group claim design, safe rollout order, and making sure a break-glass admin remains available if sign-in fails. Check whether your team has Keycloak administration experience, whether someone can change Plane's configuration and licensing, and whether you have a test environment. A partner is useful when those gaps exist or when you want an independent review before cutover.

What does the organization need to provide before the work starts?

You need administrative access to the Keycloak realm that will act as the provider, and a named owner who can create the confidential client and approve its redirect URIs. You also need administrative access to Plane, including the instance administration area, and a decision on the Plane edition. Sign-in through an external OIDC provider is a paid feature on Plane's self-hosted plans, so a Plane Commercial license is needed before the feature is available. Finally, prepare a test group of users who can sign in during the pilot, and confirm a local admin account that stays available for recovery.

Is the Plane Pro plan price a factor in choosing this integration?

It can be, because OIDC on self-hosted Plane is listed from the Pro plan upward. Plane's pricing page shows Pro at 6 to 8 US dollars and Business at 13 to 15 US dollars per user per month, with Enterprise Grid priced on request. Those figures are per user, so the total depends on how many people hold paid roles and how the Commercial Edition counts seats. Confirm current figures on Plane's pricing page before budgeting, and ask your Plane vendor how seats are counted for your workspace. Keycloak itself is open source under Apache 2.0, so its cost comes from hosting and operations.

What happens to Keycloak upgrades after the Plane integration goes live?

Keycloak keeps moving after go-live. Since Keycloak 26.0, the project plans four minor releases a year and a major release every two to three years, and it states that breaking changes in a minor release will be opt-in. That makes routine upgrades more predictable, but each upgrade still needs regression testing of the Plane sign-in flow, the email claim and the group claim. Plan a recurring test, record the Keycloak version in your change log, and review the Keycloak upgrade guidance before each move. Ask any support partner whether upgrade testing is included in a retainer.

Which Keycloak settings break Plane sign-in most often?

The most common faults are small mismatches rather than design errors. A redirect URI that does not exactly match the Plane callback, a client that is public instead of confidential, a missing or differently named email claim, and a groups claim that is not added to the token all stop sign-in or group sync. Logout also needs care, because Keycloak session and Plane session behavior are separate. Verify each item with a test user before enabling sign-in for everyone, and keep the admin password login available until the pilot passes.

Does the integration need a separate Keycloak instance for Plane?

Not necessarily. Many organizations use an existing Keycloak realm that already serves other applications, and Plane can be added as one more client. A separate realm or instance may be worth considering when access policies, administrators or compliance boundaries differ between applications. Ask your security team to confirm the realm boundary, who administers it, and how it is backed up, since Plane sign-in will depend on it being available.

How DeployOpen scopes and delivers Plane SSO with Keycloak

DeployOpen treats Plane OIDC SSO with Keycloak as a fixed-scope piece of identity work inside your own infrastructure. We agree the realm design, client settings, claim mapping and logout behavior in writing before configuration starts, then test sign-in and hand over the configuration with the runbook your team needs to operate it.

How we scope

  • We confirm your Plane edition and plan first, since OIDC sign-in on self-hosted Plane depends on the plan you hold.
  • We record the Keycloak version, realm layout, hostnames and how Plane is deployed before agreeing the written scope.
  • We agree in writing whether group claims drive access mapping, and which users keep a local break-glass admin login.

How we build

  • We create the confidential Keycloak client with the redirect URIs and endpoints your Plane instance needs.
  • We configure the email claim, name claims and the groups claim, then test them with real test accounts before rollout.
  • We verify logout behavior, token lifetimes and session settings in a staging environment that matches production.

How we hand over

  • You receive the documented client configuration, claim mappings and the test results for each sign-in path.
  • We provide a short runbook covering secret rotation, Keycloak upgrade checks and what to change when a hostname moves.
  • Your team walks through the configuration with us, so administrators can review and repeat the steps without us.

How we support

  • Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as a retainer.
  • Keycloak upgrades and Plane upgrades can change the OIDC behavior, so we can retest sign-in after each change.
  • Ask any provider for a written quote that lists the scope, deliverables, what you provide and what recurs after handover.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.