Greenlight v3 SAML login through Keycloak

Connecting Greenlight v3 to a university or enterprise SAML identity provider by placing Keycloak between them as the OpenID Connect provider. The page covers attribute mapping, the setup sequence and the production steps beyond the docs' testing sample.

On this page

How Greenlight v3 SAML login through Keycloak works for campus and enterprise staff

Greenlight v3 takes OpenID Connect through its external authentication settings, so Keycloak sits between Greenlight and your SAML identity provider as the OIDC provider and brokers the SAML login. Teams take this path when a university or enterprise already runs SAML for staff email and applications and wants Greenlight room sign-in to reuse those accounts, so staff do not manage a second set of Greenlight passwords. The docs' testing sample shows the OIDC wiring against a test setup, but it does not cover the production work: the SAML attribute mapping that turns identity provider assertions into the username, email and name Greenlight expects, the handling of staff whose records lack an attribute, and the decision about which groups may sign in at all. Confirm each of these against your own identity provider before you copy the sample.

Once sign-in is enforced, confirm which rooms and meetings guests can still open. Sign-in controls access to the Greenlight front end, so a person who has no Greenlight session may still reach a meeting through a link they were sent, depending on the room settings and how your deployment is set up. Test the guest path in a private browser window that holds no Keycloak or Greenlight session, and record which rooms open, which redirect to sign-in and which fail. Repeat the check for recording links. Keycloak's session and login settings, described in its server administration guide, control how long staff stay signed in, so set them while the test list is open.

Keycloak needs the SAML provider configured as an identity provider in its realm, and a Greenlight OIDC client in the same realm whose redirect URI matches your Greenlight hostname exactly, including the scheme. Store the client secret in the environment variables that the external authentication docs name, never in a page or a shared document. Before go-live, decide who holds the first administrator account and how that person signs in if the SAML provider or Keycloak is unavailable. Write that fallback down and test it, because a sign-in outage with no documented route to an administrator can lock out the whole staff group.

How a SAML sign-in travels from the browser to Greenlight

The sign-in starts when a user opens Greenlight in the browser. Greenlight, as an OpenID Connect client, sends the browser to Keycloak, which forwards a SAML authentication request to your identity provider. The signed SAML assertion returns to Keycloak, which maps its attributes into OIDC claims and sends an authorization code back to Greenlight through the browser. Greenlight then exchanges that code on the server side. When it creates a room, Greenlight calls the BigBlueButton API with a checksum, so the shared secret never reaches the browser. Check which hops cross the internet and confirm that Keycloak and the identity provider stay inside your infrastructure.

Trust boundaries and hand-offs from the browser to Greenlight and BigBlueButton.

Which Keycloak setup fits your identity provider and deployment

This table compares the four decisions that change how Keycloak sits in front of Greenlight: where user identity comes from, which Keycloak distribution you run, how many instances serve sign-in, and which database holds its state. Read each row as an option, when it fits, its trade-off, and what to settle with your identity team or vendor before building. Settling the identity source and database first avoids rework when the Greenlight settings are applied.

Decision and optionWhen it fitsTrade-offConfirm with your identity team or vendor
Identity source: SAML brokeringStaff or students already sign in through a SAML identity provider, and you want no separate Greenlight passwords.Keycloak only sees the attributes the SAML assertion carries, so missing values must be fixed at the identity provider.Attribute names, NameID format, required email and role claims, and whether the identity team will release them.
Identity source: user federationThe directory is the authoritative source, and the identity team can grant Keycloak read-only access to it.Adds a directory connection that Keycloak must reach and keep authorized, along with its own sync and attribute mapping.Directory type, the schema of user and group attributes, sync frequency, and who owns the service account.
Identity source: local Keycloak accountsA small pilot or test group where no institutional identity provider is available yet.Accounts, password policy, MFA and offboarding become your duty, and they duplicate the identity provider's records.Who approves accounts, password and MFA policy, and how leavers are removed from Keycloak.
Keycloak distribution: community releaseYour team runs and patches Keycloak itself and accepts the upstream release cadence.The current release is 26.8.1, published October 13, 2026, so you own every minor upgrade and its opt-in breaking changes.Support window you need, whether your policy accepts upstream releases, and the upgrade test plan for each minor version.
Keycloak distribution: Red Hat buildYour organization needs vendor support and already holds a Red Hat subscription.Red Hat's product page showed 26.6 as its latest version, which is behind the community release of 26.8.1.The exact build version they will ship, support dates, and whether the subscription covers Greenlight's Keycloak needs.
Topology: single instanceA pilot, a single site, or a deployment where a short sign-in outage during patching is acceptable.One node is simpler to run and upgrade but has no failover for sign-in.The sign-in outage window your users and Greenlight owners accept, and how restarts are scheduled.
Topology: highly available clusterGreenlight meetings depend on sign-in, and the team can run several Keycloak nodes.Requires a synchronously replicated database and load balancing, and adds upgrade and failover testing.Which of Keycloak's documented HA architectures they will run, and whether their database replication is synchronous.
Database: development dev-fileOnly for local evaluation of the SAML flow before any shared environment exists.The default database is for development only, so it cannot carry a production sign-in service.Nothing here is for production: plan the move to a supported database before go-live.
Database: supported production databaseAny shared or production deployment, including the highly available cluster above.Adds database operations, backups and version checks; PostgreSQL 14 to 18 is among the supported options.The database version your platform team supports, backup and restore tests, and whether schema migration runs at startup or manually.

Mapping SAML attributes to the claims Greenlight reads

Greenlight does not read SAML assertions. Your institutional identity provider releases attributes such as email, display name and group or affiliation values to Keycloak, and Keycloak must convert them into OpenID Connect claims through identity provider mappers before Greenlight receives them. The first decision is the unique identifier. Choose an attribute that stays fixed for a person across terms and name changes, such as a persistent identifier released by the provider, and treat email as contact data. Confirm with the identity team that the chosen attribute is released to the Keycloak client and is stable for every population that will sign in. Changing the identifier after users have logged in can force you to relink accounts, so settle it before the first production user signs in.

The second decision is what happens when the email attribute is missing. Some providers withhold email for privacy reasons or release it only to approved services, and a login without it can fail inside Keycloak or arrive at Greenlight with an empty value. Decide whether such logins are refused with a clear message or accepted with a fallback identifier, and test both outcomes. Groups and affiliations need the same care. Map each value explicitly to a Greenlight role, send anything unmapped to the lowest-privilege role, and keep administrator rights away from broad values such as a general staff affiliation. The role names and their rules are covered in the roles section of this guide, so this step only defines which SAML values feed those roles.

The third decision is how a first login matches an existing local Greenlight account. If matching relies on email alone, a reassigned or changed address can attach a new person to an old account, so use the stable identifier from the first decision as the match key where your Greenlight release supports it. Decide whether an unmatched user gets a new account, waits for an administrator, or is refused. The exact claim names, the claim Greenlight reads for the identifier and the role rules must be confirmed in the Greenlight external authentication documentation for the release you run, and the sample configuration should be treated only as a starting point. Then test the full chain with an institutional test account that carries the same group memberships as real users, and check the account Greenlight creates, its role, and the result of a second login.

Setup sequence for Greenlight SAML login through Keycloak

This sequence connects Greenlight v3 to a SAML identity provider through Keycloak, which then gives Greenlight OpenID Connect sign-in. Each step closes with a check you can run before moving on, so a fault surfaces at the stage that caused it. The result is a tested login path for standard users and administrators, with roles mapped from the attributes your identity team releases.

  1. Agree SAML metadata and attribute release

    Meet the identity team before changing any server. Agree which SAML metadata file or URL Keycloak will consume, the entity ID that applies, and which attributes the identity provider will release for email, username, display name and any group or role value that should grant administrator rights. Ask for the attribute names in writing, because most mapping errors trace back to a mismatch at this stage. The step is done when you hold a written attribute list and a dedicated test account that the identity team has confirmed will be released to Keycloak.

  2. Install Keycloak on a production database

    Install Keycloak on one of its supported production databases, such as PostgreSQL 14 to 18. The default file database is intended for development only. Set the public hostname that Greenlight users will reach, and configure TLS with a valid certificate chain as the production configuration guide describes. The step is done when the admin console loads over HTTPS at that hostname, the certificate validates from a machine outside your network, and the realm's OpenID Connect discovery document lists the issuer URL you expect.

  3. Create the realm and SAML identity provider

    Create a dedicated realm for Greenlight, separate from any administrative realm, then add a SAML identity provider using the metadata agreed in the first step. Confirm that the entity ID and signing certificate in Keycloak match what the identity team published, and set the name identifier and email settings to the values they confirmed. The step is done when the test account signs in through the identity provider and returns to Keycloak with no certificate, signature or audience error in the server log.

  4. Configure attribute mappers for claims

    Add attribute mappers that copy each SAML attribute into a user profile field and into the token claim that Greenlight reads, covering email, username and the name fields. Map the group or role attribute only if it appears in the list from the first step, and keep administrator mapping explicit so that no user gains elevated access by default. The step is done when you sign in with the test account, decode the ID token in a local tool, and confirm that the email, username and name claims carry the expected values and that no unexpected role claim appears.

  5. Register the Greenlight OIDC client

    Create an OpenID Connect client for Greenlight in the Greenlight realm, with client authentication enabled. Set the redirect URI to the exact value in the external authentication documentation, matching scheme, host and path character for character, because a mismatch produces a redirect error at login. Store the client secret in your secrets store. The step is done when starting sign-in from the Greenlight page lands on the Keycloak login screen without a redirect error.

  6. Set the Greenlight OIDC environment variables

    Set the Greenlight OIDC variables using the names and formats in the external authentication documentation, with the issuer URL of your Keycloak realm, the client ID and the client secret from the previous step. Restrict the file permissions on the environment file and keep it out of version control. Restart Greenlight so the values load. The step is done when the sign-in page shows the external login option and the issuer value in the configuration matches the issuer in the realm's discovery document exactly, character for character.

  7. Test sign-in with three accounts

    Test with three accounts: the dedicated test account, an administrator and a standard user, each signing in through the identity provider. For each account, confirm that sign-in completes, the user lands in the expected role, and the Greenlight account carries the email and name from the assertion. Confirm that the administrator can open the admin area and the standard user cannot. The step is done when each result matches the attribute list from the first step, and you have recorded the decoded claims for each account so the identity team can compare them with the agreed release.

Security controls for the SAML to OIDC chain

The SAML to OIDC chain has three trust points: the university or enterprise identity provider, Keycloak, and Greenlight, with BigBlueButton behind Greenlight. Each hop holds a credential or certificate that can be stolen, expire or be misconfigured. The controls below cover those hops and name the settings you must confirm in the current product documentation before launch.

Client and shared secrets

Greenlight holds the OpenID Connect client secret that Keycloak issues, and it must also hold the BigBlueButton shared secret used to compute the checksum on every API call. Neither secret may appear in a web page, a template, a browser-visible setting or a log line. Store both in the server environment file with restricted read permissions, and confirm in the Greenlight external authentication docs which variables carry each value. Rotate the client secret in Keycloak and Greenlight together, and check that a rotation does not leave the old value active in either system.

BigBlueButton API docs

Keycloak administrator access

The Keycloak admin console can change the SAML broker, the Greenlight client and the attribute mappings, so administrator accounts are a direct route into the whole chain. Keep a small set of named administrators, retire the bootstrap account after setup, and avoid shared logins. Require multi-factor sign-in for every administrator, and confirm in the Keycloak server administration guide whether that is enforced in Keycloak or through the upstream identity provider. Also decide whether the admin console is reachable from the public internet at all.

Keycloak admin guide

TLS and hostnames

Keycloak and Greenlight each need a stable public hostname with a valid certificate, and the hostname Keycloak advertises must match the one users reach, or SAML and OIDC redirects break. Register each redirect URI in the Greenlight client exactly, including scheme, host, port and path, and avoid wildcards unless your version documentation requires them. Do not accept a redirect URI you have not registered. Confirm the hostname and proxy settings for production in the Keycloak configuration guide before you test the sign-in flow.

Keycloak production guide

SAML certificate lifecycle

The SAML connection depends on the identity provider's signing certificate and on any encryption keys exchanged with Keycloak. Record which certificate is active, its expiry date and the person who renews it, because an expired signing certificate stops sign-in without an obvious error. Plan rotation in two steps: add the new certificate while the old one still validates, switch, then remove the old one. Test each rotation in a staging realm first. Confirm the metadata refresh steps for your version in the admin guide.

Audit and monitoring

Keycloak exposes metrics for monitoring, and its server logs record authentication events and errors, which lets you review the chain after an incident. Decide where logs go, how long they are kept and who may read them, and check that they never contain client secrets or tokens. Expose the metrics endpoint only to your monitoring network, and confirm in the metrics documentation which metrics your version provides. Alert on failed SAML logins and on certificate expiry.

Keycloak metrics docs

Realm and admin role separation

Keep the Greenlight client, the SAML broker and test users in a realm that does not hold production administrators, and give administrators roles scoped to the realm they manage. A staging realm lets you change attribute mappings and certificates without touching live sign-ins. Do not let a Greenlight-facing client hold administrator rights in Keycloak. Confirm whether realm-scoped administrators can reach settings in other realms.

Upgrades, high availability and Keycloak releases to plan for

Keycloak 26.8.1 was published on October 13, 2026, and the project plans four minor releases a year. Since Keycloak 26.0, breaking changes in minor releases are opt-in, so an upgrade does not change behavior until you enable the change. That lowers the risk of a surprise but does not replace testing. Greenlight's OpenID Connect settings, the client that Greenlight uses in Keycloak, and the attribute mappings that feed Greenlight's user records all depend on how Keycloak behaves. Before each Keycloak change, run a joint test in a staging realm that mirrors production. Confirm that the Greenlight client still completes a full sign-in, that mapped attributes still arrive in the token claims Greenlight reads, and that your Greenlight version works with the target Keycloak release. Read the backwards compatibility notes for each minor release before you schedule the change.

Keycloak migrates its database schema automatically at startup by default, so the first start of a newer version changes the production database before anyone has checked the new server. Keycloak also supports manual migration, where administrators apply the SQL themselves, and the upgrading guide suggests this approach for large deployments. Decide which mode you will use before the change window, take a database backup, and rehearse the migration on a copy of production. Confirm that your database is one Keycloak supports for production; PostgreSQL 14 to 18 is among the listed options. If you install through the Keycloak Operator, its documentation strongly recommends manual approval mode for updates, so a new Keycloak version is never applied to the cluster without a person approving it.

Keycloak becomes a dependency of every Greenlight login, so its availability sets the uptime of sign-in for staff and students. If the Keycloak service is unreachable, users who sign in through the SAML brokering path cannot reach Greenlight. Keycloak documents three high availability architectures: a single cluster, optionally spread across availability zones; multi-cluster deployments (v2) without an external Infinispan cluster; and the deprecated multi-cluster v1 design, which used a separate Infinispan cluster per site. Both supported designs need a synchronously replicated database, so the database replication model belongs in the same design review as the Keycloak nodes. Choose the architecture before go-live, document the recovery steps, and test a node failure during a live sign-in check. Read the high availability overview before you choose one.

Limits to confirm before you commit to this login path

These checks decide whether the Keycloak path fits your institution before the build starts. Each card names a point where Greenlight, Keycloak and the identity provider depend on one another, with a question to answer in writing.

Greenlight version and OIDC settings

Greenlight v3 accepts external authentication through OpenID Connect, configured with environment variables, so the first check is whether the version you plan to run supports the OIDC settings and claims your design needs. Read the exact variables and claim names on the external authentication page before you write the Keycloak client. Test with the same Greenlight version you will run in production, and confirm which user fields Greenlight reads from the token, since those fields drive account matching and display names.

External authentication docs

SAML attributes and signing setup

Keycloak can only map what the institution's SAML provider sends. Ask the identity provider team to confirm what the provider releases, such as a stable username, an email address and a display name, and which signing certificate and metadata Keycloak should trust. Also ask whether signed requests or encrypted assertions are required, because those settings change what Keycloak must hold and how the client is configured. Get the answers in writing before the build starts, since a missing attribute usually appears only at first login.

Guests, access codes and local accounts

Once sign-in is required, guest joins, access codes and existing local Greenlight accounts may behave differently than before. Confirm whether guests can still join without signing in through an access code, and whether accounts created with local passwords still log in or are left unused. Write the expected result for each path, then test each one with a sample account before you switch users over. The people who run guest meetings will notice first if a path closes, so involve them in the test.

Logout and session expiry

Logout has two layers: the Greenlight session and the Keycloak session behind it. Confirm whether signing out of Greenlight also ends the Keycloak session, so the next person on a shared computer cannot re-enter without a password. Also check what happens when a session expires while a user is in a meeting. Test both behaviors on a shared browser and on a personal one, and record what the user sees in each case. Do not assume the defaults match your security policy.

Metadata and certificate change notices

A SAML identity provider can rotate its signing certificate or change its metadata, and Keycloak keeps trusting the copy you loaded until someone updates it. Ask the institution how and when such changes are announced, and how much lead time they give before a change takes effect. Agree on who receives the notice and a named contact, plus a change procedure that tests the login path before the old certificate expires. Without this, a certificate change can stop staff sign-ins with little warning.

Whether the Microsoft variant fits

If your staff sign in with Microsoft accounts, a Microsoft Entra ID connection brokered through Keycloak may fit better than a generic SAML connection. The sibling topic on Microsoft sign-in covers the greenlight OIDC client, the Microsoft identity provider and automatic redirect. Decide before you build, because the two designs create different Keycloak objects and handle existing local accounts differently. Confirm which identity provider your institution runs for staff, and whether students or guests use a different one.

What buyers ask before hiring help with Greenlight SAML login through Keycloak

What drives the cost of Greenlight SAML login through Keycloak?

The main cost drivers are the number of identity providers, the attribute and group rules you need, whether Keycloak runs highly available, how many Greenlight instances sit behind the login, and how quickly your identity team can test. Each identity provider adds its own metadata exchange, claim mapping and test cycle. Attribute and group rules decide which staff receive moderator or administrator roles, so they need review with the directory owners. A highly available Keycloak needs a synchronously replicated database and more infrastructure to run and test. Every extra Greenlight instance is another redirect and certificate to verify. Labor is paid to DeployOpen for the planning, build, testing and handover named in the written scope, while infrastructure and your identity team's time are costs you carry. Ask for a quote that lists each driver as a separate line, so you can see what changes if one driver grows.

How long does a Greenlight SAML integration through Keycloak take?

The schedule depends mostly on your identity team's change control and how many test cycles its process allows. Change windows for identity provider configuration, sign-off on attribute release and approval of new redirect URIs can each add a wait. Test cycles repeat whenever a test account receives the wrong role or a claim arrives empty. Because these waits sit outside the build, no generic duration is reliable across institutions. Ask for a written schedule that lists each approval, its owner, the change window and the number of test rounds assumed. DeployOpen works to a written scope with agreed timelines before work starts, so the schedule should be part of that scope. Also ask which dates depend on your side, so a late approval is visible as a schedule change rather than a silent slip.

What does our team need to provide for Keycloak SAML login?

Plan to provide the following before the build starts:

  • Administrator access to the identity provider, so Keycloak can be registered and its configuration read
  • The identity provider's SAML metadata, plus confirmation of which attributes and groups it releases
  • Test accounts for each Greenlight role you expect, including one account that should be denied access
  • DNS records and valid TLS certificates for the public Keycloak and Greenlight hostnames
  • A maintenance window for the switch from local sign-in to federated sign-in

The identity team should own the approvals for each item, and the test accounts should be ready before the first test cycle begins. Missing any of these items is a common reason a planned test cycle is lost.

Can our own identity team set up Keycloak SAML login without a partner?

Yes, if the team already has working SAML and OpenID Connect experience and can test against your identity provider. The Greenlight external authentication documentation and its Keycloak guidance give a starting point, but the testing sample is not a production design. A production design also covers attribute mapping from the identity provider into Keycloak claims, group rules that set Greenlight roles, database and high availability choices, certificate handling and an operational runbook for upgrades. Most of the risk sits in the parts a sample leaves open, so have the design reviewed by someone who has run this setup before. A partner can take on part of that work under a written scope, while your team keeps ownership of the identity provider, the approvals and the sign-off. Decide early which parts your team builds, which it reviews and which it hands over.

Do we need a Red Hat subscription for Keycloak in Greenlight?

Only if your organization requires vendor support for Keycloak itself. Keycloak is open source and licensed under Apache 2.0, so a support contract is optional unless policy requires one. Red Hat build of Keycloak is Red Hat's supported distribution based on the open source project, and it replaces Red Hat Single Sign-On. Ask your security and procurement teams whether internal policy, an audit scope or a contractual obligation requires a vendor with a support agreement. If it does, treat the subscription as a recurring cost, and confirm with Red Hat that its terms cover the configuration you plan to run. Support is a separate decision from the integration work, so it can be settled in parallel with the scope.

What happens to existing local Greenlight accounts after SAML login is enabled?

The answer depends on how your Greenlight version links a federated sign-in to an account that already exists, so confirm that behavior in a test environment before cutover. Plan answers to three questions: whether local password sign-in stays available for administrators during the transition, how an existing local account is matched to the identity provider's user (for example, by email address), and what happens to rooms and recordings owned by those accounts. Test with a copy of production account data, including an administrator, a moderator and a user whose email address appears twice. Record the decision in the runbook, including who can recover a locked-out administrator and how to revert the sign-in method if the identity provider is unavailable. The identity team should approve the account-linking rule before any user sees the new login.

How DeployOpen scopes and delivers Greenlight SAML login through Keycloak

DeployOpen plans, implements, integrates, documents and supports self-hosted open-source platforms inside the client's own infrastructure, and this Greenlight login work follows that pattern. The written scope fixes what Keycloak, the SAML identity provider and the Greenlight settings cover before work starts. Engagements are fixed-scope, and ongoing support is available as a retainer.

How we scope

  • The written scope names the SAML identity provider, its metadata source and the user attributes Greenlight needs.
  • Scope also covers the Keycloak host, its production database and the Greenlight OpenID Connect client settings.
  • Engagements are fixed-scope, and the written scope sets deliverables and timelines before work starts.

How we build

  • Keycloak is configured as the OpenID Connect provider, with the SAML identity provider brokered into one realm.
  • Attribute mappers convert SAML assertions into the claims Greenlight reads, and each mapping is tested with a sample account.
  • Keycloak runs on a supported production database such as PostgreSQL 14 to 18, never the development file store.

How we hand over

  • Handover includes the Keycloak realm export, the Greenlight environment settings and a record of every attribute mapping.
  • Operators receive a runbook covering schema migration at startup, manual SQL migration and how to test a Keycloak upgrade.
  • Login paths are tested with local, staff and guest accounts before users are moved to the SAML sign-in.

How we support

  • Upgrade planning follows Keycloak's four minor releases a year and its opt-in breaking-change policy from Keycloak 26.0.
  • If the Keycloak Operator runs the stack, updates use manual approval mode to avoid unintended automatic upgrades.
  • Ongoing support, upgrades and continuous testing are available as retainers 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.