Keycloak identity brokering with external identity providers

Keycloak can send users to Google, Microsoft, GitHub or a corporate OIDC or SAML identity provider and bring them back signed in. This guide covers the design decisions, build sequence, effort drivers and checks for doing it safely.

On this page

How Keycloak identity brokering with external identity providers works

Applications sign in to Keycloak, but many of their users already have accounts at another provider: a corporate Entra ID tenant, Google Workspace, or GitHub. Keycloak acts as the broker. It trusts the external provider to authenticate the user, then creates or links a local Keycloak user and issues its own tokens to the application. The application never needs to know the external provider exists, which is the point of the pattern. Teams usually need this after a merger that leaves two directories in place, when partner staff or customers must sign in with their own organization's identity, or when staff want to use social accounts for a limited set of tools.

The pattern looks simple on a whiteboard and is harder in practice. Trust configuration is the first risk: each external provider needs correct endpoints, client credentials, signing keys and, for SAML, certificate and metadata handling, and a mistake here either breaks sign-in or accepts assertions it should not. First login decisions come next, because Keycloak must decide whether a returning or new external identity maps to an existing local user, prompts for review, or creates a new account. Duplicate accounts appear when the same person signs in with two providers, and claim mapping determines which email, group or role values carry over. Also note that the external provider's sign-in strength does not automatically carry over. If the upstream provider enforces MFA but Keycloak's own flows do not check that, the local session may be weaker than the reader assumes.

The server administration guide documents brokering with OpenID Connect, OAuth 2.0 and SAML 2.0 providers, plus social providers including Google, GitHub, GitLab, Microsoft, Facebook, LinkedIn, PayPal and Twitter. That list is what the guide documents, not a promise about every provider or every version of its API. Before design work, confirm each provider against your own requirements, including the claims it returns and whether your identity owner will accept its authentication strength. The Keycloak server administration guide is the reference for the exact settings.

Which Keycloak settings make up a brokered login

A brokered login is assembled from several separate Keycloak objects, each configured in a different part of the admin console or realm export. Knowing which object controls which behavior tells you where to look when a sign-in fails, links the wrong account or grants the wrong roles.

Identity provider configuration

This object defines the external provider Keycloak trusts: the protocol (OpenID Connect or SAML 2.0), discovery or endpoint URLs, the client ID and secret Keycloak presents to the provider, and any signing certificates used to validate responses. It lives under Identity providers in the admin console and as an identityProviders entry in the realm export. Check that the issuer and redirect URI match what the provider has registered, because a mismatch fails before any user sees an error page. Treat the client secret and certificates as credentials that need rotation planning.

Keycloak docs

Identity provider mappers

Mappers translate what the external provider sends into Keycloak user attributes, group memberships and realm or client roles. For OpenID Connect providers they read claims from the ID token or user info response, and for SAML providers they read assertion attributes. They are attached to the identity provider, so each brokered provider can map the same attribute differently. Verify mappers with a test login, since a missing mapper often leaves users signed in with no roles and no visible error.

First login flow and account linking

The first login flow runs the first time a brokered identity arrives and no matching local user exists. Its review profile step, linking steps and any extra prompts decide whether Keycloak creates a new user silently, asks the person to confirm details, or links the external identity to an existing local account. Linking by email is the step that most often creates account takeover risk, so confirm how the provider verifies email addresses before you allow automatic matching. This flow is set on the identity provider and is visible under Authentication in the admin console.

Browser flow and the provider button

The realm's browser flow controls where the identity provider button appears on the login page and in what order it is shown next to password and MFA steps. A provider can be enabled but hidden from the login screen, or made the only option by automatic redirect, which changes how users reach the local login form. Review this flow whenever you add a second provider or add MFA, because step order decides whether brokered users are asked for a second factor. It is managed under Authentication in the admin console and included in the realm export.

Local user store

The local user store is the realm's own user database, and it receives every brokered identity as a linked federated identity on a local user record. Roles, groups, required actions and sessions all attach to that local record, not to the external account. Check which fields the provider can overwrite on each login, since a mapper that updates an attribute on every sign-in can silently change access. If the realm also uses LDAP or Active Directory federation, decide which store is the source of truth before linking the two.

Client redirect URIs and scopes

Each application client in the realm has its own redirect URIs, web origins and requested scopes, and these must allow the return path from Keycloak after the external provider finishes. Scopes control which claims the application receives in its tokens, so a client that does not request the mapped roles or groups will not see them even when the mapper works. Keep redirect URIs as exact values instead of broad wildcards, and review them after each change to the provider. These settings live on the client in the admin console or in the client definition in the realm export.

A brokered login hands off to the external provider and returns as a Keycloak token

The flow starts when the application sends its sign-in request to Keycloak, which shows the provider choice and redirects the browser to the external provider. The provider's code or SAML response comes back to Keycloak, which verifies it before deciding what to do with the identity. On a first login, Keycloak either creates a local user or links the external identity to an existing account after review. Attribute mappers then copy claims into the local profile. Check the trust boundary here: the external provider's assertion is trusted only after Keycloak verifies it, and the application receives only Keycloak-issued tokens.

Sequence of a brokered sign-in, from the application through the external provider back to Keycloak tokens.

Choosing between social, OIDC and SAML brokering

This table compares the four ways to bring an outside identity into a Keycloak realm, with the operational cost of each. Read each row for who owns the external trust and what breaks when that provider changes, then weigh those costs against how many providers you expect to maintain.

OptionWhen it fitsWhat it costs you operationally
Social providers (Google, Microsoft, GitHub and similar)Consumer accounts, contractors or partners who do not sit in your corporate directory and need fast onboardingThe provider owns the account lifecycle, so you cannot disable a leaver from your side alone. You hold the client ID and secret, which must be rotated, and you must review the claims each provider returns, since they differ and can change without notice.
Enterprise OIDC providersModern corporate directories that issue standard OpenID Connect tokens and where you want group and role claims mapped into KeycloakYour team registers Keycloak as a client in the corporate tenant, and the corporate identity team owns the trust. Client secret expiry and redirect URI changes need a shared change process, and each claim mapping must be tested after directory schema updates.
Enterprise SAML 2.0 providersOlder corporate or government federations that only speak SAML, or where a formal federation agreement already existsSigning certificates expire and must be replaced on both sides, often on a schedule set by the other organization. Attribute names and NameID formats are fixed by the partner, so mapping errors surface only when a real user signs in, and certificate rollover planning is needed.
One corporate provider as a hubYou have one primary directory or federation that already covers most users, and external parties are fewA single trust relationship and one set of rotation and testing tasks to maintain. The hub becomes a single point of dependency: a change or outage at that provider affects every brokered user, so confirm an escape route such as a local fallback login policy.
Brokering each provider separatelySeveral independent identity providers serve different user groups, each with its own onboarding and offboarding ownerEach provider adds its own certificate or secret rotation, claim mapping and test cases. Support load grows with each provider, and first login flow and account linking rules must be checked for every one of them. Ask the team who will own each trust before adding another.
Account linking and first login behaviorUsers may already have a local Keycloak account or an account at another brokered provider with the same email addressAutomatic linking by email can merge accounts that should stay separate, so decide whether to review links, verify email ownership, or require the user to confirm identity before linking. Each choice affects helpdesk workload and audit evidence.
Provider changes and claim driftAny brokered provider that may change tenant settings, claim names, or endpoint certificatesFailures often look like sign-in errors for a subset of users. Keep a test realm or test users per provider, monitor login failures per identity provider, and record who is contacted when a provider announces a change.

Configuring an external identity provider in Keycloak step by step

This sequence takes one external OIDC, SAML or social identity provider from trust setup to a reproducible Keycloak realm configuration, with a check at each step that shows the brokering works as intended.

  1. Confirm the trust model and register Keycloak

    Before touching Keycloak, confirm with the external provider's administrators which protocol applies (OIDC, SAML 2.0 or a social login), who owns the tenant, and which users are allowed to sign in. Then register Keycloak as an application in that provider, set the redirect URI that Keycloak shows for the broker (it follows the pattern of your realm's broker endpoint, so copy it from the identity provider page rather than typing it by hand), and record the client ID and secret or the signing certificate. Done means the provider's application record exists, the redirect URI matches exactly, and you hold the credentials in your secrets store, not in a ticket.

  2. Create the identity provider in the realm

    In the target realm's admin console, add the identity provider and select its type. For OIDC, enter the issuer or the discovery endpoint and let Keycloak load the endpoints, then enter the client ID and secret. For SAML 2.0, import the provider's metadata or enter the single sign-on URL and signing certificate manually. Save and confirm that the provider appears in the realm's identity provider list with a redirect URI that matches what you registered upstream. The check is a successful connection test from the provider page, and a stored secret that is not shown again in plain text.

  3. Set scopes, trust and sync mode

    Request only the scopes the mappers need, such as openid, profile and email, and confirm with the provider's documentation that the scopes are available to your client. Decide whether to trust the provider's email claim for account linking, and whether to sync user attributes on every login (import mode) or only at first login. Record these choices in your change notes, because they decide how account linking and attribute updates behave later. The check is a test sign-in through the provider's own page that completes without an error screen in Keycloak.

  4. Add attribute and role mappers and test them

    Create mappers that copy claims or SAML attributes into Keycloak user attributes, and mappers that translate provider groups or roles into Keycloak roles or groups. Use a dedicated test account at the provider, sign in through the broker, and open the user's details in the admin console. Confirm that the expected attributes and roles are present with the expected values. For OIDC, decoding the ID token on the provider side helps you spot a missing claim before you blame the mapper. The check is the mapped result on the test user, plus a second test account with no matching group that receives no elevated role.

  5. Configure the first login flow

    Set the first broker login flow to match your policy. Review profile prompts the user to confirm missing details before the account is created. Link existing account lets a user who already exists in the realm prove ownership of that account, typically with its password or a second factor, before the identities are joined. Deny blocks first sign-in when the account is not already provisioned. Pick the option that matches how you trust the provider's email address, and avoid auto-linking by email alone unless the provider verifies that address. The check is a failed login for an unmapped test user and a successful, confirmed link for a pre-existing test user.

  6. Add the provider button to the login flow

    Keycloak shows a button for each enabled identity provider on the login page by default. If the provider should appear only for some clients, some realms or some browser paths, adjust the client and flow configuration, or use a separate realm or organization for that population, and confirm that the button is hidden elsewhere. Test from a fresh private browser session for each client, including the admin console and any account pages. The check is that the button appears only in the intended places, and that a user who should not see it cannot reach the provider through a direct link.

  7. Export the realm configuration

    Once the tests pass, export the realm configuration, including identity providers, mappers and authentication flows, through the admin console or the export tooling for your Keycloak version. Remove or move secrets into your secrets manager before the export is stored or committed, and confirm which values the export masks. Keep the export in version control next to the rest of your realm definitions so a second environment can be built the same way. The check is that a fresh realm imported from the export reproduces the provider, the mappers and the first login flow, and that the test sign-ins behave the same way there.

How first login and account linking decide who gets an account

The decision that most often produces duplicate or hijacked accounts is what Keycloak does on a user's first brokered login, when the external identity provider (IdP) returns a user that Keycloak has not seen before. The first broker login flow decides whether Keycloak creates a new local user, links the external identity to an existing local user, or stops and asks the user to confirm. Before you design that flow, decide which attribute is allowed to match an existing account. Email is the usual candidate because it is easy to match, but it is only safe when the external provider has actually verified it. Confirm the exact review, linking and re-authentication steps available in your Keycloak release, because the flow options and their defaults have changed across versions and should be checked in the administration console for the release you run.

Linking on an unverified email is the most common route to account takeover. If a provider allows users to enter any address they like, a visitor who registers with a victim's address at that provider can be linked to the victim's local account on first login. Check the email verified claim in the identity provider mapper or in a custom step of the first broker login flow, and refuse to link when the claim is missing or false. Where the provider does not reliably send that claim, the safer choice is to require the user to confirm the link by re-authenticating to the existing local account, so the person proving ownership is the one who controls that local password or second factor. Treat automatic linking as a provider-by-provider decision, not a global default.

Three cases need explicit rules. For users who already exist locally, decide whether the first broker login should link silently, prompt for confirmation, or create a second account, and test each path with a real local user. For users whose email changes at the provider, the link is keyed on the stable subject identifier, not the email, so an address change should not create a new account, but the local email may need updating through a mapper with the same verification check. For users who sign in through two providers, each external identity is stored as a separate link on the same local user, and you should confirm that a second provider cannot be linked to an account that already has a link to a different identity from the same provider. Document these rules before go-live so support staff can explain them.

What drives effort in identity brokering rollouts

This table compares the factors that raise effort or cost when Keycloak brokers sign-in to external identity providers, and what each one takes to keep under control. Read the one-time rows as design and build work that is paid once per trust relationship, and the recurring rows as work that continues after go-live. The main takeaway is that the number of providers matters less than how many realms, clients and mappings depend on each one.

DriverHow it raises effort or costHow to keep it down
Number of external providersEach provider needs its own configuration, testing, secret handling and owner. Costs grow with each trust relationship, not with each user.Agree which providers are in scope at the start. Add new ones through the same intake and test steps each time.
Protocol mix (OIDC, SAML and social)OIDC and SAML providers need metadata, certificate and signature checks. Social providers bring their own app registrations, consent screens and terms. Each protocol adds distinct test cases.Standardize on OIDC or SAML where the partner allows it. Keep a checklist per protocol so each new provider follows the same steps.
Number of realms and clients that need the same providersThe same provider often has to be configured in several realms and used by several clients, so each copy needs its own mappers, first login flows and tests.Define the provider once in a template or as code, then reuse it. Confirm which realms truly need it before copying it.
Claim and attribute mapping complexityPartners send claims with different names, formats and missing values. Each mapping needs design, a decision on what happens when a claim is absent, and a test with real sample tokens.Request a sample token or assertion from each partner during design. Keep mappings to the attributes applications actually use.
Existing user data to reconcile (duplicate accounts)Users who already exist locally may sign in through a new provider and create a second account. Account linking rules, email matching decisions and clean-up work all add effort.Inventory existing accounts and email domains before go-live. Decide whether linking is automatic, verified by the user, or blocked, and document the rule.
External providers must be tested in each environmentRedirect URIs, client secrets and trust settings differ across development, test and production. Each environment needs its own sign-in test with the partner, which often depends on the partner's availability.Ask partners for test tenants or test environments early. Script the redirect and metadata setup so environment changes are repeatable.
Compliance evidence needed for each trust relationshipAssessors may ask for the agreement, the scope of attributes shared, the protocol settings, the owner and the review history for each provider. Gathering that evidence is recurring work.Keep one record per provider with its configuration, data received, owner and last review. Confirm the evidence list with your assessor before design.
Who owns the external side (client IdP team or platform team)When the client's identity team controls the partner's side and the platform team controls Keycloak, changes need coordination across two teams and two change calendars.Name one owner for each provider and a contact on the partner side. Agree in writing who approves metadata, certificate and secret changes.
Secret rotation and certificate renewal (recurring)Client secrets and signing certificates expire or are rotated by the provider. Each rotation is a change that can break sign-in if missed.Record expiry dates in a shared calendar with alerts. Test rotation in a non-production environment before changing production.
Provider changes and new applications (recurring)Partners change endpoints, claim formats or certificates, and new applications need mappings that may differ from existing ones. Each change repeats part of the design and test work.Keep mapping definitions versioned and documented. Route new application requests through the same review as the first rollout.

Securing brokered sign-in and the trust you extend

Brokering moves part of your authentication decision to a provider you do not operate. Each card below marks a point where Keycloak accepts a claim, token or account from outside your realm, and what to verify before that trust reaches production applications.

Validate external tokens and signatures

Keycloak must verify the signature, issuer, audience and expiry of every token or SAML assertion it accepts from an external provider. For OIDC brokering, confirm the provider's signing keys and issuer URL are pinned to the correct tenant. Keycloak 26.8 requires that backchannel logout tokens from external providers have their signatures validated, so test logout flows with each provider before go-live. Confirm this behavior in your own test realm during upgrades.

Upgrade notes

Limit accounts by domain or tenant

A broker configured for a multi-tenant provider such as a public Microsoft or Google sign-in can accept accounts from organizations you never intended to serve. Restrict the accepted tenant or domain on the identity provider configuration, and where the Organizations feature is used, bind each provider to the organization domains it should serve. Ask the provider owner which tenant identifiers are allowed and record them in the change request.

Avoid linking on unverified email

Automatic account linking by email address lets an attacker who controls an unverified address take over an existing local account. Review the first broker login flow so that linking requires either a verified email claim from a trusted provider or an explicit confirmation by the existing user with their current password or second factor. Test the case where a provider returns an email that was never verified.

Control which claims become roles

Attribute and role mappers copy external claims into Keycloak users, groups and roles, so a single unexpected claim can grant administrative access. Map only the claims your applications need, prefer group membership from a provider you govern, and check that no mapper writes to realm-management or admin roles. Document each mapper with its source claim and target role so reviewers can trace how a user received access.

Protect client secrets and SAML keys

Each external provider configuration stores a client secret or a SAML signing and encryption key. A realm export, backup or Helm value file that includes these in plain text exposes every brokered trust relationship at once. Keep secrets in a dedicated secret store, exclude them from exports shared with other teams, and rotate keys on a schedule that both you and the provider have agreed. Confirm the export process in your environment before you rely on it.

Production guide

Scope providers to realms and clients

A provider added to one realm should not become available to every client in every realm on the same server. Limit each broker to the realms and clients that need it, and review which clients can initiate the login through that provider. Keep TLS on every provider endpoint and place the public frontend behind a reverse proxy that restricts the admin paths, so that broker callbacks cannot be redirected to a host you do not control.

How to test brokered sign-in and confirm it fails safely

The goal of testing brokered sign-in is to confirm that every failure stops at Keycloak with a clear result, and that no account is created and no role is granted by mistake. Build a test plan for each external provider you enable, and run the same cases against each one. Cover a successful first login, a repeat login that should reuse the linked identity, a login by an existing local user whose email matches the provider account, a login where the provider returns an unverified or unexpected email address, a login by someone outside the allowed domain or tenant, a provider outage or a misconfigured client secret, and an account that has been removed or disabled at the provider. For each case, write down the expected result before you run it: which flow runs, whether a user is created or linked, what the user sees, and which roles and groups the user ends up with.

Run all of this in a non-production realm first. Create a separate test realm that mirrors the identity provider settings, first login flow, and attribute mappers you plan to use, and keep test accounts at the provider apart from real staff and customer accounts. Test users should use addresses on domains you control, so a mistake cannot send mail or link to a real person. Confirm the event settings in that realm before you start, because the evidence for each case lives in the admin events and user events that Keycloak records for these attempts. Check which event types are stored in your environment, how long they are kept, and whether login failures are persisted, since the defaults can differ between versions. Review the Keycloak server administration guide for the event and first login flow settings that apply to your release.

After each run, check the user list, the linked identity records, the role and group assignments, and the events for that attempt. A failed case is only acceptable if it shows a clear error or a review screen and leaves no new account or elevated access behind. Repeat the full plan after any change to the provider, the first login flow, or the mappers, and again before go-live. Keep the results as a dated record, since reviewers and auditors often ask for evidence that failures were tested and not only that the happy path works. Ask your security team to sign off on the expected results before testing starts, so that a surprising outcome is treated as a defect rather than a judgment call.

What to monitor, document and maintain after go-live

Brokering depends on details outside Keycloak itself: partner certificates, client secrets, claim formats and the upstream provider's own changes. The cards below cover the records, signals and recurring checks that keep each external provider working after go-live.

Keep a record of each provider

Maintain one entry per identity provider listing its owner, protocol (OIDC, SAML 2.0 or a social login), trust material and expiry dates, the mapper list, and the linking policy agreed for it. Without this record, the first question during an incident (who owns this provider and what does it send?) takes hours to answer. Review the entries at each release and whenever a partner changes its tenant or endpoints.

Keycloak docs

Watch login failures per provider

Track failed brokered logins separately for each provider, since a spike on one provider usually points to an expired certificate, a changed redirect URI or a claim that stopped arriving. Keycloak exposes Prometheus-format metrics at /metrics on its management interface when started with --metrics-enabled=true. Pair those metrics with Keycloak events so each failure can be traced to a provider and an error type.

Metrics guide

Rotate client secrets and certificates early

Each OIDC client secret and each SAML signing or encryption certificate has an expiry, and the partner side may use a different date. Record both dates in the provider entry and schedule replacement well before expiry, with a window where old and new material both work if the partner supports it. Confirm the rotation steps with each provider's administrator, since the change must be made on both sides.

Review mappers when claims change

External providers change claim names, group formats and email handling without notice, and attribute mappers silently produce empty values when that happens. Re-check each mapper against a current sign-in from the provider, especially for roles, groups and the email claim used for account linking. Treat a changed claim as a security event when it affects which users are linked to which local accounts.

Re-run the test plan on each minor upgrade

Keycloak plans four minor releases a year, and the 26.8 upgrade notes include changes that affect brokering, including mandatory signature validation of backchannel logout tokens from external providers. Run the first-login, linking and mapper tests from the brokering test plan against a staging realm after every minor upgrade, before production. Keep the results with the change record so a regression can be compared against the last known good run.

Upgrading guide

Export realm configuration as a versioned record

Export the realm's identity provider, mapper and authentication flow settings on a schedule and store them in version control alongside the change tickets that produced them. Exports let you compare the production configuration with staging, rebuild a realm after a failure and show auditors who changed a linking policy and when. Strip or vault client secrets from exports before they are stored.

Questions teams ask before brokering external identity providers

How much more effort is brokering several external providers compared with one?

A single provider is mostly one configuration exercise: register Keycloak as a client in the provider, configure the endpoints and mappers in the realm, then test first login. Each additional provider repeats that work and adds its own claim formats, group models, certificate or secret rotation schedule and support contact. The effort grows less with the number of providers than with how different they are. Two OIDC providers that both send the same email and group claims are cheap to add. A SAML provider with custom attribute names, a different signing certificate lifecycle and a tenant-specific login domain takes considerably more design and testing. Ask any partner to split the estimate by provider type and to list the mapping rules each one needs.

Can our own team broker identity providers without a partner?

Often yes, if the team already runs Keycloak and has people who understand the protocols involved. The work needs working knowledge of OpenID Connect and SAML 2.0, including what an ID token or SAML assertion carries, how signatures are validated and how clock skew and audience values cause failures. It also needs access to the external provider's admin console to register applications and read claim and group settings, and the discipline to test failure paths such as a deactivated user, a user from an unapproved domain and a user with no mapped role. Teams without these skills usually spend their time on the failures rather than the happy path. A partner can review your design or run the testing, and you can decide which parts to keep in house.

What do we need from the external provider's administrators?

You need an administrator on the external side who can create or approve an application registration, set the redirect URI that Keycloak uses for the broker callback, and choose which claims or group memberships are released. Expect to agree on the client secret or certificate handling, who holds it, how it is rotated and where it is stored, so it does not end up in a chat thread or a shared spreadsheet. For SAML, agree on metadata exchange, signing certificates and the name identifier format. For group-based access, confirm whether groups arrive as names, IDs or only for certain users, because that determines the mapper configuration. Put these answers in writing before the first test, since most delays come from waiting on the other organization.

Are social logins safe for staff access?

Social logins such as Google, Microsoft or GitHub can work for some workforce scenarios, but they need restrictions before they are used for staff access. A consumer account on a social provider is not the same as an account your organization controls, so anyone with a personal account could try to sign in. Restrict by domain or tenant where the provider supports it, require the organization's own tenant for Microsoft or Google Workspace accounts, and reject sign-ins whose verified email does not match your domain. Also consider what happens when an employee leaves: the external account may remain active under their own control. Staff access usually calls for a corporate identity provider with its own lifecycle controls, with social providers reserved for customers or low-risk applications. Confirm these rules with your security team before go-live.

How does account linking differ from first login?

First login creates a new Keycloak user the first time someone signs in through an external provider, and Keycloak can run a review step to confirm the details before the account is created. Account linking connects an external identity to a user who already exists in Keycloak, such as a local account or a user from directory federation. Linking is the riskier step because a wrong match can give one person access to another person's account. Keycloak's first broker login flow can be configured to ask the user to prove ownership of the existing account, for example by entering its password or completing a second factor, before the link is made. Decide in advance which matching attribute is trusted, whether unverified email addresses can be used for matching, and what happens when two accounts claim the same address. The design choices are easier to make before users exist than to fix afterward.

What should we check in a quote for this work?

A quote should state the number and type of external providers in scope, the attributes and groups to be mapped for each, and the first login and linking flows you want. It should say whether custom authentication flows or theme changes are included, because those carry their own upgrade cost. Ask how testing is covered: negative cases, a staging realm, and a rollback plan for each provider. Confirm who obtains and stores the external provider secrets and whether any work on the external side is included or depends on your administrators. Check how the scope handles Keycloak upgrades that change broker behavior, and whether support or retainer terms apply after go-live. DeployOpen agrees scope, deliverables and timelines in writing before work starts, so the written scope is the document to compare across quotes.

Does brokering work in a clustered or Kubernetes deployment?

Identity brokering is a realm-level feature, so it works the same way in a clustered deployment as in a single node, provided every node uses the same database and the public hostname matches the redirect URIs registered with each external provider. The Keycloak Operator manages Keycloak, realm imports and clients as custom resources, which lets you keep client definitions in version control. Identity provider configuration is handled separately, so confirm in your chosen install method, whether through the operator resources or the realm import, how the broker settings and secrets are deployed and updated. Keep the operator update approval in manual mode so a new release does not change behavior unexpectedly. Test a full login through each provider after every change to the cluster, the ingress or the hostname.

How DeployOpen scopes, builds and hands over Keycloak brokering work

DeployOpen plans, implements, integrates, documents and supports self-hosted open-source platforms inside the client's own infrastructure, and brokering work follows the same method. Each engagement starts from a written scope covering the identity providers, the applications that sign in through them and the attribute and first-login rules that apply.

How we scope

  • Inventory each external OIDC, SAML and social provider and who owns its configuration.
  • Agree in writing which applications, realms and user groups will use each brokered sign-in.
  • Define first login, account linking and attribute mapping rules before any build work starts.

How we build

  • Configure identity providers and mappers in a non-production realm that mirrors production settings.
  • Test first login, account linking and mapped attributes with named test accounts for each provider.
  • Verify TLS, redirect URIs and token signature validation against the client's own security requirements.

How we hand over

  • Deliver written documentation of each identity provider, mapper, flow and linking rule configured.
  • Walk the client's identity and application teams through the configuration and test evidence.
  • Record the export of realm configuration so the client can review changes through its own process.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer after go-live.
  • Confirm with the client's team which support levels and response terms apply before signing a scope.

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.