How Keycloak sign-in for Jenkins works through oic-auth
A team that wants Jenkins logins to come from Keycloak instead of the local user database or LDAP should use the Jenkins OpenId Connect Authentication plugin (oic-auth). The plugin is the security realm that makes this work, and it replaces the existing realm when enabled, so the Jenkins user database and LDAP stop being the source of sign-in. Plan the switch as a change to the whole controller, not a single setting, and settle the recovery path before you touch the security realm.
The plugin can read its endpoint details from the provider's .well-known/openid-configuration document, so you point it at the Keycloak realm's issuer URL and let discovery fill in the authorization, token and user info endpoints. Confirm that the discovered issuer matches the one your Keycloak realm advertises, since mismatches are the usual cause of failed logins. Keycloak realm and client settings still need to be set by hand in the Keycloak admin console, including the client's redirect URI and the scopes that carry group information.
Authorization in Jenkins follows the groups the provider returns. The plugin reads a groups claim from the token, and your authorization strategy (for example, matrix-based security) grants rights to those group names. Decide which Keycloak groups map to administrator, operator and read-only roles, and test each mapping with a real user in each group before you rely on it. Keep the group list short and owned by one team, because every group name in the strategy becomes an access decision.
Scripted clients such as build scripts and CLI tools cannot use basic authentication with oic-auth, so they must move to Jenkins API tokens issued to a user account. Inventory every job, script and pipeline that authenticates today, switch each one to an API token, and remove the old password-based access. Review the plugin's security advisory history, which the plugin page lists, and keep the plugin version current with Jenkins LTS updates.
What you need before you change the Jenkins security realm
Switching Jenkins to Keycloak replaces the existing security realm, so every dependency has to be confirmed first. The cards below cover the Jenkins version and Java runtime, the Keycloak realm and client, the groups claim, the plugin itself and the recovery path that keeps the controller reachable if sign-in breaks.
Jenkins version and Java runtime
Confirm the controller runs a current LTS line and a Java release on the Jenkins support policy, which lists Java 21 and Java 25 as supported. Java 17 has a final LTS release in the supported history, so a controller still on it needs a runtime upgrade before the plugin work starts. Check the LTS changelog for plugins removed from the bundle in recent releases, because a plugin you rely on may need to be installed separately first.
Java support policyKeycloak realm reachable over HTTPS
The Jenkins controller and every user browser must reach the Keycloak realm over HTTPS, and the issuer URL must match what Keycloak advertises in its discovery document. Confirm the realm's public frontend URL, any reverse proxy path rules and the certificate chain that the controller's Java trust store accepts. A mismatch here usually appears as a failed discovery call during the first sign-in attempt.
Confidential client for Jenkins
Create a dedicated client for the Jenkins controller with client authentication enabled, so Jenkins holds a client secret and the secret is stored in Jenkins credential storage rather than in a shared file. Set the redirect URI to the controller's own callback path under your Jenkins root URL. Confirm the Jenkins root URL is set correctly in the controller settings before you save the realm configuration.
Groups claim in tokens
Jenkins grants rights from the groups the provider returns, so the ID token or userinfo response must carry a groups claim with the names your authorization strategy will match. Add a group membership mapper to the client scope, then sign in as a test user and inspect the returned claims. Decide early whether you want short group names or full paths, because the mapping in the authorization strategy depends on that choice.
Plugin version and advisory check
Install the OpenId Connect Authentication plugin through the Jenkins plugin manager, not by copying an .hpi file, and record the exact version you deploy. The plugin page lists past security advisories, including issues with audience and issuer claim validation and an open redirect, so compare your version against that list and the current release before go-live. Repeat this check on every plugin update.
Plugin pageTested recovery credential
Enabling oic-auth replaces the Jenkins user database and LDAP as the security realm, so a broken Keycloak setting can lock every user out. Before you change anything, create an escape hatch administrator credential, sign in with it, and confirm it still has administrative rights. Store that credential outside the Keycloak dependency, and test it again after each change to the realm.
Configure Keycloak and Jenkins in the order that avoids lockout
This sequence sets up a recovery path first, then wires Keycloak to Jenkins through the oic-auth plugin, so an authentication mistake never leaves the controller without a working administrator. Each step closes with a check you can see before moving on.
Create and verify the escape hatch administrator
Before anything changes, the Jenkins administrator creates a local administrator account in the current security realm and stores its credential in the team's secrets vault. Log in with that account in a separate browser session and open Manage Jenkins to confirm the administrator rights work. Keep this account for recovery only. The step is done when that login succeeds and the credential is recorded where two named people can retrieve it.
Create the Keycloak client and secret
In the target Keycloak realm, a realm administrator creates a confidential OpenID Connect client for Jenkins. Set the redirect URI to the Jenkins securityRealm callback path on your controller's HTTPS hostname, and enable client authentication so Keycloak issues a client secret. Copy the client ID and secret into the secrets store, not into a shared document. The step is done when the client shows the expected redirect URI and the secret is stored.
Add a groups mapper to the client
On the same Keycloak client, add a mapper that places the user's group membership into the ID token or userinfo response under a claim name your team chooses, such as groups. Decide whether full group paths or short names are sent, because the authorization strategy later must match that format exactly. Sign in as a test user in Keycloak and inspect the issued token in the admin console's client scopes or evaluate tool. The step is done when the groups claim lists the test user's expected groups.
Install the oic-auth plugin
On the Jenkins controller, a Jenkins administrator installs the OpenId Connect Authentication plugin from the plugin manager, then restarts Jenkins if the plugin manager requests it. Check the plugin's security advisory history on its plugin page and confirm the installed version is the one you intend to run. Confirm the Jenkins version and Java runtime are supported by your team's standard. The step is done when the plugin appears in the installed list with the expected version.
Enter the discovery URL and client settings
Under Manage Jenkins and Security, select the OpenID Connect security realm and enter the realm's .well-known/openid-configuration URL, which lets the plugin read the authorization, token and userinfo endpoints. Enter the client ID and secret, and set the groups claim name to match the mapper from the previous step. Save without changing the authorization strategy yet, so the escape hatch remains usable. The step is done when Jenkins accepts the saved configuration without endpoint errors in the log.
Set the authorization strategy from group names
Choose an authorization strategy that reads group names from the token, and map each Keycloak group to a Jenkins role such as administrator or read-only. Grant administrator only to a small Keycloak group, and keep the escape hatch account present in the configuration. Save the change and leave the existing administrator session open. The step is done when the mapped groups match the names you confirmed in the token inspection.
Test sign-in in a private window
Open a private browser window, sign in through Keycloak as a user in the administrator group and again as a user in a non-administrator group, and confirm each sees the rights you assigned. Then sign in with the escape hatch account from the first step to confirm recovery still works. Do not close the original session until all three checks pass. The step is done when the expected roles appear for each account and the recovery login succeeds.
Move scripted clients to API tokens
Basic authentication does not work with oic-auth, so each script, pipeline trigger or service account that called Jenkins with a password must be given a Jenkins API token for the user it represents. Generate tokens from the user's configuration page, store them in your secrets manager, and update the calling systems. Revoke any old password-based access. The step is done when each scripted call succeeds with its token and the old basic authentication attempt is rejected.
How Keycloak groups map into Jenkins authorization
The oic-auth plugin needs to know which token claim carries the user ID, the full name and the email address. These values become the Jenkins user identity, the name shown in the header and the address used for notifications. If the user ID claim is wrong, Jenkins may create a second account for the same person or fail to match existing build history, so this choice should be made before the first real login. Keycloak's default claims are a starting point, but your realm may use a different claim for the username than the one your team expects.
- User ID claim: choose a stable, unique value such as the Keycloak username or subject, and avoid mutable attributes like an email address that can change.
- Full name claim: map the display name claim so that audit entries and build logs show a readable name.
- Email claim: confirm the email attribute is populated for every user who needs notifications.
- Case and format: check whether usernames arrive in a consistent case, since a mismatch can split one person into two Jenkins accounts.
- Test users: sign in with at least one account per user type to see how each one appears in Jenkins.
Confirm the claim names in the plugin configuration page against a real token issued by your Keycloak realm before you save the configuration.
Authorization in Jenkins depends on the groups the provider returns, so the group values in the token must match the names configured in the authorization strategy exactly. The oic-auth plugin reads groups from the claim you specify and uses them to grant rights, whether you use a matrix or a role-based strategy. Keycloak can emit group names as plain names, as full paths that include parent groups, or with a prefix added by a protocol mapper. Each choice produces a different string, and a single character difference means the user gets no rights at all.
- Plain or full path: decide whether Keycloak emits a name such as
jenkins-adminsor a full path such as/platform/jenkins-admins, and use the same form in Jenkins. - Prefixes: if a mapper adds a prefix, include it in every Jenkins grant.
- Case sensitivity: treat group names as case-sensitive and copy them from the token, not from the Keycloak admin console labels.
- Least privilege: grant the administrator role to one narrow group and keep most teams on read or build rights.
- Unmatched users: test a user with no group membership to confirm they are denied rather than given default access.
Decode a sample access token or ID token from a test user and compare each group string character by character with the grant in Jenkins.
The authorization strategy also decides what someone can see before or without signing in. Anonymous access is a separate decision from authenticated access, and it should be set deliberately because build logs often contain internal hostnames, branch names and parameter values. Settings that look minor in the matrix can expose more than the team intends, so review them together with the group grants rather than treating them as a default.
- Anonymous rights: remove any anonymous read or overall read permission unless the organization has decided that build status is public.
- Authenticated baseline: decide which rights every signed-in Keycloak user receives, and keep that baseline small.
- Job-level visibility: check whether sensitive jobs need separate permissions or folder-level restrictions.
- Webhooks and status badges: confirm which endpoints remain reachable without a login, since integrations may depend on them.
- Recovery path: keep the escape hatch administrator separate from these grants so that a broken mapping does not lock everyone out.
Walk through the site as an anonymous user and as a user with no groups, and record what each one can open.
Claims, groups and Jenkins roles to define
This table lists each identity value the oic-auth integration depends on, where it is set (Keycloak or Jenkins), and what to decide for it. Read it as a build checklist: confirm every claim name against the plugin settings in your Jenkins version before you map anything, because the plugin's field labels and defaults control what Jenkins reads from the token.
| Item | Set in | What to define |
|---|---|---|
| Username claim | Keycloak (client mapper) and Jenkins (user ID field) | Choose one stable claim, such as the Keycloak username, for the Jenkins user ID. Confirm the exact claim name in the oic-auth settings before testing. |
| Email claim | Keycloak (email mapper) and Jenkins (email field) | Map the verified email address so Jenkins can show user details and notifications. Confirm whether your plugin version requires the email scope. |
| Groups claim | Keycloak (groups mapper on the Jenkins client) and Jenkins (groups field) | Add a groups mapper to the ID token or userinfo response. Decide whether to send short group names or full paths, and test the value a sample user actually receives. |
| Jenkins grants per group | Jenkins (authorization strategy) | Create one row per group with the minimum rights needed, such as read-only, job runner or administrator. Keep group names identical to the values in the token. |
| Escape hatch admin account | Jenkins (credential kept outside SSO) | Plan one recovery administrator that works without Keycloak, stored in your password vault and tested. The plugin replaces the local user database, so decide how this account is restored if the realm is unavailable. |
| Scripted client API token owner | Jenkins (user API token per service account) | Assign each script or pipeline client to a named user with a narrow group, generate its API token there, and record the owner. Basic authentication does not work with this plugin. |
| Keycloak client settings | Keycloak (confidential client and redirect URI) | Create a confidential client for Jenkins with the redirect URI your Jenkins URL requires. Confirm the exact callback path in the plugin documentation. |
| Discovery endpoint | Keycloak realm URL and Jenkins (discovery field) | Point Jenkins at the realm's .well-known/openid-configuration document so endpoints are read automatically. Confirm the issuer value matches the realm URL exactly. |
Questions teams ask before connecting Jenkins to Keycloak
Are Keycloak groups alone enough to manage Jenkins access?
Keycloak groups are enough to decide who can sign in and which rights they receive, but only if the group design matches the Jenkins authorization model. The oic-auth plugin reads the groups the provider returns and uses them to grant rights, so each Jenkins role or folder permission needs a clear Keycloak group behind it. Teams often mix group names that describe people (such as a department) with groups that describe duties (such as release approvers), and that mix makes access hard to audit. Before you map anything, decide which groups grant controller administration, which grant job or folder rights, and which grant read-only access. Keycloak can hold that model, but someone still has to own the group list and review membership on a schedule.
Does basic authentication still work for Jenkins scripts?
No. Basic authentication does not work with the oic-auth plugin, so scripted clients must use Jenkins API tokens instead. Any job, cron script, or tool that calls the Jenkins REST API or the CLI with a username and password will fail after the switch. Inventory these clients before you enable the plugin. For each one, create a dedicated service account in Jenkins, generate an API token for it, and store the token in your secrets manager rather than in job configuration. The effort depends on how many scripts exist and whether they use shared credentials, which is why the inventory is usually the first task in the project.
How long does Keycloak and Jenkins SSO take, and what drives the time?
The time depends on the number of teams, the group design, how many CI jobs call Jenkins with tokens, and the testing you need before cutover. No duration is fixed by the plugin or the project, so treat any single number you hear with caution. Teams with one controller and a small group model usually move faster than organizations that run several controllers, separate folders for each team, or many external scripts. Ask for the work to be split into discovery, a staging controller, token migration, a test pass covering sign-in, logout, group mapping and recovery, and a production cutover. Each phase has its own effort driver, and the quote should list them separately.
What must Jenkins and Keycloak administrators provide?
Both sides need to supply access and decisions before work starts. From Keycloak, the team needs an OpenID Connect client for Jenkins, a confirmed issuer and discovery endpoint, the group names and membership rules, and the claims that carry those groups. From Jenkins, the team needs administrator access to the controller, a list of plugins and existing security realms, the authorization matrix currently in use, and the inventory of scripts and pipelines that call the API. Both sides also need a named owner for the escape hatch administrator credential and a place to store it. Missing any of these items usually adds time at the start of the project, not at the end.
Can our own team set up Jenkins with Keycloak internally?
Yes, if your team already runs Jenkins and Keycloak and has someone who understands both authorization models. The configuration itself is not large, but the risk sits in the details: validating audience and issuer claims, keeping an escape hatch administrator available, and avoiding a lockout when the plugin replaces the existing security realm. The Jenkins plugin page lists past security advisories on the plugin, including audience and issuer claim validation issues and an open redirect, so the team should track plugin updates and read advisories as part of routine operations. If your team has no recent experience with either product, a short external review of the design can cost less than a failed cutover. Your decision should rest on skills you have today, not on a general estimate.
What does a DeployOpen engagement for Jenkins SSO cover, and is it fixed-scope?
Most DeployOpen engagements are fixed-scope, which means the scope, deliverables and timeline are agreed in writing before work starts. For this topic, a written scope would normally name the Keycloak client and discovery configuration, the group mapping model, the escape hatch administrator setup, the API token migration for the scripts in your inventory, and the test plan for sign-in, logout and recovery. DeployOpen does not publish a price list, so a quote follows from that written scope. Ask for the scope to list what is excluded, such as changes to Jenkins agents, pipeline rewrites or Keycloak branding, and ask whether ongoing plugin upgrades and advisory monitoring are included or offered as a retainer.
What should we test before we switch all users to Keycloak sign-in?
Test the full sign-in path, the group-driven permissions, and the recovery path before you disable the old security realm for everyone. Verify that discovery loads from the provider's well-known configuration, that users in each mapped group get the expected rights, and that users outside every group are denied. Confirm that the escape hatch administrator works while Keycloak is unavailable, and that scripted clients succeed with API tokens and fail without them. Also check how the plugin behaves with the logout flow and with users whose group membership changes. Each test adds effort in proportion to the number of groups and controllers, so ask the provider to show the test cases in the scope.
Security settings for Jenkins on Keycloak
Once Jenkins trusts Keycloak for sign-in, the controller's security depends on settings in both systems. The cards below cover transport, token validation, plugin currency, recovery access, administrator scope and credential rotation, in the order a team usually works through them during go-live and after.
HTTPS on controller and Keycloak
Serve the Jenkins controller and the Keycloak realm over TLS only, and make sure the redirect URI registered in the Keycloak client uses the exact HTTPS root URL Jenkins advertises. Mismatched schemes or hostnames cause sign-in failures that teams often 'fix' by loosening settings. Check that the Jenkins root URL and the Keycloak frontend URL match what users actually type in their browsers.
Keycloak production guideValidate audience and issuer claims
The plugin has had past advisories involving audience and issuer claim validation, so treat these checks as a release gate rather than an assumption. Confirm that the Jenkins client ID is the expected audience in the tokens it accepts, and that the issuer matches the realm's discovery document exactly. Test a token from a different client or realm and confirm it is refused.
Keep the plugin current
Track the oic-auth security advisories on the plugin page and schedule updates with the Jenkins core upgrade cycle. Plugin updates can change how tokens or redirects are handled, so test sign-in on a staging controller first. Record the installed plugin version in your change log so an auditor or incident responder can see what was running when.
Plugin pageKeep the escape hatch offline and tested
Enabling oic-auth replaces the Jenkins user database, so a Keycloak outage or a bad mapping can lock everyone out. Store the recovery administrator credential offline with named custodians, and test that it works on a non-production controller at a fixed interval. A recovery path that has never been exercised is unlikely to work during an incident.
Limit administrator grants
Map only a small Keycloak group to the Jenkins administrator role, and keep it separate from general build or developer groups. Review its membership on a schedule and remove users who change teams. Because group claims drive authorization, anyone who can edit group membership in Keycloak can also grant Jenkins admin rights, so restrict realm administration accordingly.
Rotate client secrets and API tokens
Rotate the Keycloak client secret on a planned schedule and after any staff change, then update the Jenkins configuration in the same window. Scripted clients should use Jenkins API tokens, which must be revoked and reissued when a job owner leaves or a script is retired. Keep a record of which token belongs to which pipeline so revocation does not break unrelated automation.
Keep Keycloak admin endpoints separate
Keycloak's production guidance is to expose the admin console and Administration REST API on a different hostname or context path from public frontend URLs. Apply the same separation to the realm the Jenkins client uses, so sign-in traffic does not reach administrative paths. Confirm this with your reverse proxy configuration and with the network team before go-live, since the layout is set outside Jenkins.
Keycloak production guideHow the sign-in and API token paths differ
Browser sign-in and scripted access take two different paths into Jenkins, and the difference matters for both security and audit. When a user opens the Jenkins login page, the oic-auth plugin redirects the browser to Keycloak using the OpenID Connect authorization code flow. The user authenticates at Keycloak, Keycloak returns an authorization code to Jenkins through the redirect URI registered on the client, and Jenkins exchanges that code for tokens at the token endpoint it discovered from the realm's .well-known/openid-configuration document. Jenkins then reads the claims it needs, including the groups claim that drives the authorization strategy, and creates a session. Keycloak holds the credential, MFA policy and session lifetime, so Jenkins never sees the user's password. Scripted clients cannot follow that redirect, which is why basic authentication with a username and password does not work once oic-auth is enabled.
CI jobs, shell scripts and CLI tools therefore authenticate with a Jenkins API token. The token is created from a user's configuration page in Jenkins and is sent with that user's name as HTTP basic credentials, so the request is still evaluated against that user's group memberships and permissions. Decide before rollout whether automation runs under a named service account that exists in Keycloak or under individual engineers' accounts. A token tied to a person's account records that person's identity in build and API activity and disappears when the account is disabled, while a service account keeps audit trails stable across staff changes but needs its own group membership, an owner and a rotation procedure. Confirm in your environment how your Jenkins version logs token use and whether those log entries reach your central log store.
Common Jenkins and Keycloak login failures and fixes
This table pairs each common failure in a Jenkins and Keycloak OpenID Connect sign-in with its likely cause, the fix, and the log or token check that confirms it. Work down the rows in the order users hit them: redirect, discovery, claims, authorization, scripts, then recovery. The main takeaway is that most failures trace to a mismatch between the Keycloak client settings, the URLs Jenkins was given, and the groups claim the token actually carries.
| Failure | Likely cause and fix | How to confirm |
|---|---|---|
| Redirect URI mismatch after sign-in | The Keycloak client does not list the exact callback URL Jenkins sends, often because the Jenkins root URL is http, has a different host, or lacks the /securityRealm/finishLogin path. Set the Jenkins URL in system configuration to the public address users type, then add that exact callback to the client's valid redirect URIs. | Keycloak event log shows an invalid redirect URI error. Compare the redirect_uri parameter in the browser address bar with the client settings in the Keycloak admin console. |
| Discovery URL unreachable from the controller | The well-known endpoint is reachable from user browsers but not from the Jenkins controller, due to DNS, proxy, or certificate trust differences. Test from the controller host, add the internal CA to the Java trust store, and confirm any outbound proxy settings for the controller JVM. | Run curl against the openid-configuration URL from the controller host and check the Jenkins log for SSL handshake or unknown host errors during login. |
| Issuer mismatch during token validation | The issuer in the discovery document uses a different hostname than the URL configured in Jenkins, usually because Keycloak sits behind a reverse proxy with the wrong hostname or proxy headers. Align the Keycloak frontend hostname with the URL Jenkins uses, then reconfigure the plugin to match. | Decode the ID token and compare its iss claim with the issuer value in the .well-known/openid-configuration document. |
| Groups missing from the token | The Keycloak client has no groups mapper, or the mapper is set to a full path that does not match the names in the Jenkins authorization strategy. Add a group membership mapper to the client scopes, set the claim name Jenkins expects, and decide whether to use full group paths. | Inspect the ID token or userinfo response for the groups claim. If it is absent, the mapper or scope assignment is the cause, not Jenkins. |
| Users sign in but have no permissions | The token carries groups, but none match the group names in the matrix or role strategy, so the user lands with anonymous or read-level rights. Compare the exact strings in the token with the Jenkins grants, including case and leading slashes from full path mapping. | Check the groups claim value in the token against the authorization matrix entries, and review the Jenkins security audit log for the signed-in user's effective roles. |
| Scripts fail after switching to OIDC | Scripted clients and CI jobs that used basic authentication with a user password stop working, because basic authentication does not work with oic-auth. Create a Jenkins API token for a dedicated service user and update each script, curl call, and Jenkins CLI invocation to use it. | A 401 or 403 response on API calls that worked before the switch confirms it. Check that the calling user has the permissions the old password login had. |
| Lockout after switching the security realm | The administrator account was local to the previous realm and no escape hatch was created, so no one can sign in once the plugin is active. Recovery usually requires editing the configuration on disk or restarting with a recovery setup, so create a break-glass admin credential before enabling oic-auth and test it. | Confirm the escape hatch works in a private browser session before enabling OIDC on production. If lockout already happened, check the controller's configuration files under $JENKINS_HOME for the securityRealm setting. |
| Sign-in loops back to the login page | Session cookies are rejected because the Jenkins URL uses a different scheme or host than the cookie domain, or because a proxy strips the forwarded headers Jenkins uses to build callback URLs. Fix the proxy headers and the configured root URL together. | Review the browser cookie settings for the Jenkins host and the response headers from the reverse proxy for Location values that use the wrong scheme. |
Login and API token flow between Jenkins and Keycloak
The flow starts when a user opens Jenkins in the browser and is redirected to Keycloak to sign in. Keycloak returns an ID token with a groups claim, and Jenkins checks those groups against its authorization strategy before granting rights. Scripted clients take a separate path: they present a Jenkins API token, because basic authentication does not work with the oic-auth plugin. The escape hatch administrator sits outside the OIDC path as a local fallback, so check that it still works before you enable the plugin.
Browser sign-in through Keycloak and the separate API token path for scripts.
How to test the integration before users depend on it
Test the integration with a small set of named accounts before any team moves over. Create one test user in each Keycloak group that the authorization strategy maps, and confirm that each user signs in to Jenkins and sees exactly the rights that group should carry. Then test denial: a user who exists in Keycloak but belongs to none of the mapped groups should be refused access or land without rights, depending on how the plugin is configured. Record the result of each case, because the oic-auth plugin replaces the Jenkins user database and LDAP, so a mistake here affects every login, not just the test accounts.
Next, test the paths that scripts and recovery depend on. For each CI job that calls the Jenkins API, generate a Jenkins API token under a dedicated service identity and confirm the job succeeds with it, since basic authentication does not work with this plugin. Confirm that the token is the only credential the job stores and that a revoked token fails. Then sign in with the escape hatch administrator credential, using the break-glass path your runbook describes, and confirm it still works while the OIDC realm is enabled. Treat this as a required check, not an optional one.
Repeat the full test set after every Keycloak upgrade and after every Jenkins controller upgrade. Upgrades are where regressions appear, and the Jenkins LTS changelog reports that the 2.580.1 release stopped bundling several plugins, so confirm that the oic-auth plugin and any other plugin your tests rely on are still installed and enabled after each controller upgrade. Keep the test cases, expected results and dated outcomes in version control so the next run can be compared with the last. Confirm with your Keycloak and Jenkins versions which OIDC settings the plugin page currently recommends, because the advisories it lists concern claim validation and redirect handling.
How DeployOpen scopes and delivers Jenkins SSO on Keycloak
DeployOpen plans, implements and documents Keycloak as the OpenID Connect provider for Jenkins inside infrastructure you control. The work covers discovery, group mapping, the escape hatch administrator and API token migration for scripted clients, with tests and a handover your team can run.
How we scope
- The written scope names the Keycloak realm, client settings, Jenkins controllers and the group-to-role mapping you need.
- Scope records which scripted clients move to Jenkins API tokens and who owns each token rotation.
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we build
- We configure the oic-auth plugin against your Keycloak discovery endpoint and verify issuer and audience validation.
- We map Keycloak groups into the Jenkins authorization strategy and test each role with sample users.
- We set up and test an escape hatch administrator credential before the old security realm is removed.
How we hand over
- You receive a written record of the client configuration, group mappings, recovery procedure and API token process.
- We document how to confirm the plugin version against the security advisories listed on the plugin page.
- Handover includes a walkthrough with your administrators on recovery, lockout tests and changing group mappings.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Retainers can cover Jenkins LTS upgrades, plugin updates and retesting of SSO after Keycloak upgrades.
- Quotes follow from the written scope, so ask for the cost components and recurring items to be listed separately.

