How Greenlight Microsoft login works through Keycloak
An organization that runs Greenlight v3 for meetings outside its LMS and wants staff to sign in with Microsoft work accounts instead of local Greenlight passwords needs an identity broker between the two. Keycloak sits in front of Greenlight as the OpenID Connect provider and brokers the Microsoft login, so Greenlight authenticates against Keycloak and Keycloak authenticates against Microsoft Entra ID. Greenlight only has to trust one identity provider, and the Microsoft connection, its settings and its failure handling all live in Keycloak. Because a fault at either link blocks sign-in, plan and test each link separately.
Greenlight v3 supports external authentication through OpenID Connect, and its settings are supplied as environment variables in the Greenlight configuration. The Greenlight docs suggest Keycloak as the way to add Microsoft login, alongside Google, SAML and other methods, so this design follows the project's own guidance. This setup suits three situations: access limited to staff, central control of identity from one place, and one login method shared by several internal applications. For the first two, confirm how long Keycloak sessions last after a Microsoft account is disabled in Entra ID, because that window is the real offboarding gap. The Greenlight v3 external authentication docs list the OpenID Connect settings you need to confirm for your version.
The sign-in change leaves several things as they are. The BigBlueButton API shared secret does not change: Greenlight still signs its calls to BigBlueButton, or to Scalelite if you run a cluster, with that secret, and the secret must stay out of any web page. Room permissions also stay in Greenlight. Who can create rooms, moderate them or record is still decided by Greenlight's roles and room settings, and Keycloak only tells Greenlight who the user is. Before go-live, check the role each Microsoft user receives after their first sign-in and compare it with what the same person had under local login. Also decide whether any local or guest access remains, because that path keeps its own rules.
Greenlight Microsoft login data flow: where Keycloak sits
The flow starts when a staff member opens Greenlight's sign-in page in the browser. Greenlight sends the browser to Keycloak with an authorization request from its own OpenID Connect client. Keycloak then hands the browser to Microsoft Entra ID through the Microsoft identity provider it has configured, so the password and any MFA prompt happen in the Microsoft tenant. Entra ID returns the authorization response to Keycloak, which validates it and issues its own token to Greenlight, and Greenlight starts a session in the browser. Confirm which hosts sit inside each trust boundary, and whether the local account path stays enabled.
Sign-in path from the staff browser through Keycloak to Microsoft Entra ID and back.
What changes for existing local Greenlight accounts
Accounts that already exist in Greenlight keep their roles, rooms and recordings when sign-in moves to Keycloak, but the way a person reaches them changes. Once the Microsoft identity provider is enabled, a returning user authenticates at Keycloak, and Keycloak decides which local Keycloak user that Microsoft identity belongs to. The decision that matters most is made in the first broker login flow, the step Keycloak runs when an external identity arrives without a linked local account. Depending on how that flow is configured, Keycloak may link the Microsoft identity to an existing user by matching the email address, ask the person to confirm the link with their local credentials, or create a new user. If the match fails, the staff member gets a second account in Greenlight, and the rooms and recordings stay with the original owner, so ownership splits across two identities.
Test the matching before any staff member signs in with Microsoft. Restore a copy of the Greenlight database and the Keycloak realm to a separate host, enable the Microsoft identity provider there, and sign in with test accounts that cover each case: a user whose Microsoft email matches the local email exactly, a user whose address differs in capitalization or uses an alias, and a user with no local account. For each case, check that the existing rooms, role and recordings appear under the same user and that no second account was created. Keep the test records so you can repeat the run after each Keycloak upgrade or any change to the identity provider settings, and treat any split account in the test as a blocker for the cutover.
Before you switch, give staff a plain communication plan. Tell people which address to use, that their first Microsoft sign-in may show a new screen, and whom to contact if their rooms look empty or a second account appears. Ask them to hold off on creating new rooms until the check-in is complete. Keep one local administrator account that signs in through Greenlight's own login path, and test it before the cutover so you can still manage users and recover if the broker configuration breaks. Finally, confirm the matching behavior and the options for the first broker login flow in the Keycloak server administration guide for the exact version you install, because those options can differ between releases.
Which Microsoft login settings fit your organization
This table compares the Keycloak and Greenlight settings that decide how staff sign in with Microsoft accounts and what happens when that path fails. Read each row against your tenant policy, your Keycloak hosting model and whether guests or local accounts must keep working. The main takeaway is to keep a tested local administrator and a visible local login until the Microsoft path has been verified end to end.
| Option | What it controls | When it fits | What to confirm |
|---|---|---|---|
| Keycloak identity provider for Microsoft Entra ID | Brokers Microsoft sign-in inside Keycloak, so Keycloak issues the OpenID Connect tokens Greenlight receives. | Staff already sign in to Microsoft 365 and your tenant allows the app registration. | Tenant ID, app registration owner, redirect URI, and which Entra groups or users may sign in. |
| Greenlight OIDC client settings | The client Greenlight uses to reach Keycloak, set through its external authentication environment variables. | Greenlight runs on a host Keycloak can reach over HTTPS with a valid certificate. | Exact variable names, client secret handling and redirect URI in the Greenlight external authentication docs. |
| Automatic redirect to Microsoft | Controls whether users see Greenlight's own login page or go directly to Microsoft. | Most staff use Microsoft accounts and no guest or local sign-in is needed. | Whether the redirect setting exists in your Greenlight version, and how it behaves for admins and guests. |
| Visible local login | Keeps the username and password form on the Greenlight sign-in page next to the Microsoft option. | Guests, contractors or accounts outside Entra ID still need to sign in. | Which existing local accounts keep working, and how users reach the local form if automatic redirect is on. |
| Local admin account for recovery | A Greenlight administrator with a local password that signs in without Keycloak, if local login stays enabled. | Almost any production setup, since a broker outage would otherwise lock out administrators. | Account exists before cutover, password is stored in your secrets process, and its login path is tested. |
| Keycloak deployment model | Single server, or Kubernetes through the Keycloak Operator, which manages Keycloak and its client resources. | A single server suits a pilot or small estate; the Operator suits teams already running Kubernetes. | Kubernetes skills in-house, and Operator updates set to manual approval, which Keycloak strongly recommends. |
| Production database for Keycloak | Stores realms, users, clients and broker settings. Dev-file storage is for development only. | Any production instance; Keycloak supports PostgreSQL 14 to 18 among its listed databases. | Database version in your environment, restore tests, and synchronous replication if you need high availability. |
Greenlight Microsoft login setup sequence
This sequence takes Greenlight v3 from a working install to staff signing in with Microsoft Entra ID through Keycloak. Each step closes with a check, so problems surface while only a pilot group is affected. The result is a tested sign-in path, a local administrator account kept as a fallback, and automatic redirect turned on only after both paths pass.
Confirm the Greenlight install and Keycloak host
Confirm which installer path you used: the Greenlight option of bbb-install.sh on the BigBlueButton server, or gl-install.sh on a separate host. Decide where Keycloak will run, and add it with the Keycloak option documented for that installer. Confirm the exact option names in the install documentation for your release before you run anything. The platform team owns this step. It is done when Greenlight loads over HTTPS at its public hostname, a local administrator can sign in, and you have written down the Greenlight hostname and the Keycloak hostname that the remaining steps will use.
Register the application in Entra ID
In the Microsoft Entra admin center, register a new application that Keycloak will use to call Microsoft for sign-in. Record the directory (tenant) ID, the application (client) ID, and a client secret with its expiry date. Decide whether sign-in should be limited to your own tenant, and confirm with your Entra administrator which role your account needs to register applications and create secrets. Leave the redirect URI empty for now, because Keycloak generates it in the next step. It is done when the client ID and secret are stored in your secrets manager and the application exists in the tenant you expect.
Create the Microsoft identity provider in Keycloak
In the Keycloak admin console, open the realm that will serve Greenlight and add a Microsoft identity provider. Enter the Entra application's client ID and secret, then copy the redirect URI that Keycloak displays on that screen. Paste that value into the redirect URI settings of the Entra application and save the change in Entra. Confirm which Keycloak admin role your account needs in this realm, using the Keycloak server administration guide. It is done when a test sign-in from the Keycloak login page reaches Microsoft and returns to Keycloak with a user record.
Create or confirm the greenlight OIDC client
In the same realm, create an OpenID Connect client named greenlight, or confirm that the installer already created one. Set its redirect URIs to the callback path that the Greenlight external authentication documentation specifies, using the public hostname that users type into their browser. Keep the redirect URIs as narrow as your team can justify, and set the web origins to match. Store the client secret in your secrets manager and note the realm name and client ID, since Greenlight needs both. It is done when the client exists, its redirect URI matches the hostname users actually use, and the Microsoft option appears on the Keycloak login page for this client.
Set Greenlight external authentication settings
On the Greenlight host, add the OpenID Connect settings from the Greenlight v3 external authentication documentation to the Greenlight environment file. These cover the Keycloak realm issuer address and the greenlight client ID and secret. Confirm each variable name against the documentation for your Greenlight release before saving, and keep a copy of the previous environment file so you can roll back. Restart Greenlight using the method your installer configured. It is done when the Greenlight sign-in page offers the external sign-in option and the local administrator can still sign in through the local login path.
Test with a pilot account and a local account
Choose a small pilot group of staff with Microsoft accounts, and keep one local administrator account as the fallback. Have each pilot user sign in through Microsoft, then check their Greenlight profile, the role assigned to them, and whether they can create and join a room. Repeat the checks with the local account. Also test sign-out, a failed Microsoft sign-in, and a user you expect to be blocked by your Entra policy. Before the pilot, decide how existing local accounts that share an email address with a Microsoft account will be handled, and test that case too. It is done when every pilot user signs in, the local account still works, and the blocked and failed cases do not open a session.
Enable automatic redirect for all staff
Only after the pilot passes, turn on automatic redirect so staff who open Greenlight go straight to Microsoft sign-in. Confirm the setting name in the external authentication documentation for your release, and change it in the same way as the earlier settings. Announce the change to users and keep the local administrator path documented and tested. Watch Keycloak event logs and Greenlight logs for sign-in failures during the period after the change. It is done when a staff member with a Microsoft account reaches Greenlight without an extra login step, and the local administrator can still sign in.
Automatic redirect or a visible choice for Greenlight Microsoft login
Automatic redirect sends every visitor to Microsoft as soon as they open the Greenlight sign-in page. It fits organizations where all staff hold Entra ID accounts, the room front end is used only by employees, and the sign-in path should look the same for everyone. Keycloak brokers the Microsoft login and returns each user to Greenlight once authentication succeeds.
- What staff see: the Microsoft sign-in page on the first visit, with no Greenlight login form to choose from.
- Lockout risk: if Keycloak or Entra ID is down, staff may have no way into Greenlight unless a local route stays reachable. Confirm this for your Greenlight version before you enable the setting.
- Local accounts: existing local users, including the first administrator, may be unable to reach a password form. Define a break-glass path before the switch.
- Support load: low at launch because users never decide which button to click, but outages appear to users as Microsoft problems, so expect tickets during Microsoft incidents.
In a test environment, confirm that a local administrator can still sign in with automatic redirect enabled before you turn it on for staff.
A visible choice shows the Microsoft sign-in option beside the local login form, and each user picks one. It fits mixed populations, such as staff with Entra ID accounts working alongside guests, contractors or external presenters who hold local accounts, or a transition period in which some teams still sign in with local passwords. Both paths stay visible, so the fallback is available to everyone without an administrator changing settings.
- What staff see: a login page with two options, so each person must know which one matches their work account.
- Lockout risk: users with local accounts keep a visible path during an Entra ID outage, but Microsoft-only staff have no working option unless they also hold a local account.
- Wrong-path errors: a Microsoft user who picks local login, or the reverse, sees a failed sign-in message and opens a ticket.
- Support load: the highest of the three options, because every user makes a choice and every wrong choice looks like a failure. A short internal guide with a screenshot reduces this.
- Security scope: local passwords stay a live sign-in path for every user, so password policy and account review remain in your security team's scope.
Confirm for your Greenlight version how the local form and the Microsoft option are presented together, and test the wrong-option message before you publish a guide.
The hybrid sends regular users to Microsoft and keeps local sign-in only for named administrator accounts. It fits organizations that want single sign-on for all users but need a guaranteed way in for the people who repair the platform during an identity outage. Because these local accounts are a deliberate break-glass path, their number, credential storage and review should be written down before go-live.
- What staff see: regular users are redirected to Microsoft, while administrators use a separate local route. Confirm the exact route in your Greenlight version.
- Lockout risk: during a Keycloak or Entra ID failure, administrators can still sign in and repair the configuration, but ordinary staff cannot sign in until the service returns.
- Admin account hygiene: each local administrator needs a strong, securely stored credential and a regular access review, because these accounts sit outside Microsoft sign-in policies.
- Support load: moderate. Staff have one path and few "which login" questions, but administrators must learn a second route and the access process needs documentation.
- Account migration: decide whether existing local accounts keep their passwords after a user's first Microsoft sign-in, or whether those passwords are disabled.
Before go-live, simulate an Entra ID outage in a test environment, confirm an administrator can still sign in, and record who holds that access. The Greenlight v3 external authentication documentation is the starting point for checking the settings.
Security risks of Greenlight Microsoft login through Keycloak
Brokering Microsoft sign-in through Keycloak places several trust decisions in one realm: the Greenlight client secret, the redirect URIs that receive login responses, session lifetimes, event logs and the upgrade path. A weakness in any one of them can expose Greenlight or lock out every user, so review them together before you enable automatic redirect.
Protect the greenlight client secret
The greenlight client secret lets Greenlight exchange login codes with Keycloak, so anyone who can read it can impersonate the client. Keep it in the Greenlight environment configuration with restricted file permissions, readable only by the account that runs Greenlight, and keep it out of web pages, templates, screenshots and tickets. The BigBlueButton API shared secret is a separate value used to compute API checksums, so never use it as the OIDC client secret or swap one for the other during troubleshooting. Check both values after each deployment change.
BigBlueButton API docsRegister exact redirect URIs
Keycloak returns users to Greenlight only at redirect URIs registered on the greenlight client, so each entry should match the callback URL Greenlight uses, including scheme, host and path. Avoid wildcards, because a broad pattern widens where login responses can be delivered. Register the production hostname only, and remove test or retired hostnames once cutover is complete. Set the post-logout redirect URI to the same exact host, and recheck the client settings whenever the Greenlight hostname or certificate changes.
Keycloak server admin guideKeep a break-glass admin path
With automatic redirect enabled, staff reach Greenlight only through Microsoft, so a Microsoft outage, a misconfigured identity provider or an expired client secret can lock out every user, including administrators. Keep at least one local Keycloak administrator in the realm, protected with multi-factor authentication, and store its credentials under a documented offline procedure. Before enabling the redirect, test that you can reach the Keycloak admin console without going through Microsoft, and document how a Greenlight administrator signs in if the redirect is paused.
Set session and token lifetimes
Keycloak issues SSO sessions and tokens with lifetimes set in the realm, and those values decide how long a stolen session stays useful after a staff member leaves. Review the SSO session idle and maximum settings and the access and refresh token lifespans against your identity policy, then record the values you chose. Shorter lifetimes mean staff sign in through Microsoft more often, so test that experience with a pilot group. Confirm that disabling a user in Microsoft Entra ID ends their Keycloak session the way your design expects.
Keycloak server admin guideEnable event logs and metrics
Sign-in failures often appear first in Keycloak, so turn on login and admin event logging in the realm and decide where events are stored and how long they are kept. Review failed logins, client changes and edits to the Microsoft identity provider. Keycloak also offers a metrics option that you can scrape into your monitoring stack after you confirm how it is enabled for your version. Treat these logs as sensitive, since they can contain user identifiers and network addresses, and limit who can read them.
Keycloak metrics docsControl Keycloak update timing
An automatic operator upgrade can change Keycloak behavior before your team has tested it. The Keycloak Operator documentation strongly recommends manual approval mode for operator updates to avoid unintended automatic upgrades, so set that mode and approve each version only after testing it against a staging realm. Since Keycloak 26.0, breaking changes in minor releases are opt-in, which lowers upgrade risk without removing it. After each approved change, confirm that the Microsoft login and the greenlight client still work.
Keycloak Operator installationWhat buyers ask before hiring help for Microsoft login
What drives the cost of Microsoft login for Greenlight?
The cost follows the written scope, and five inputs move it most: the number of identity providers in play, the Entra ID tenant policies you must respect, how Keycloak is hosted, how existing local accounts are matched and migrated, and how much testing is in scope. Adding a second identity provider or stricter tenant controls adds design and test work. Self-hosted Keycloak also carries recurring work for upgrades, patching and backups, which continues after the initial build. Account matching is often the least predictable part, because it depends on how many local users exist and how cleanly their email addresses match Entra ID records. Ask for a quote that lists each cost item separately, marks what is one-time and what recurs, and states which tenant settings the implementation partner will change and which your team must approve.
How long does a Microsoft login setup take?
The duration depends on the written scope and the tenant access available, so no fixed figure applies to every organization. Two inputs set most of the schedule: how quickly your Entra ID administrators grant the app registration and consent the sign-in flow needs, and how many pilot users can test before cutover. A scope covering one tenant and one Keycloak realm moves faster than one adding several identity providers, staged rollouts or migration of a large local user base. Ask for a schedule tied to named milestones: tenant access granted, Keycloak and Greenlight configured, pilot passed and cutover completed. Each milestone should name who on your side must act and by when, so delays in approvals appear in the plan before they affect users.
What does our team need to provide for this work?
Your team provides four things before work starts, and each one can hold up the schedule if it arrives late.
- Entra ID admin access sufficient to register the application, set the redirect addresses and grant the permissions the sign-in flow needs.
- A DNS name and a TLS certificate for both Greenlight and Keycloak, reachable by staff and by the Microsoft sign-in endpoints.
- A test group of Entra ID users who cover the Greenlight roles in use, plus several local accounts for the account matching check.
- Staff communication: a notice on when sign-in changes, what existing local accounts should do, and who to contact on cutover day.
Confirm the exact permissions and certificate requirements in writing before the scope is signed, since they depend on your tenant and network policies.
Can our own team set up Microsoft login without a partner?
Yes, a capable team can do it alone if it works from the project documentation and runs a pilot before cutover. The main risk is account matching: if a local Greenlight account has an email address that does not match the Entra ID identity, the user may end up with a second account instead of the one they already use. The Greenlight external authentication documentation covers the OpenID Connect settings, but it does not decide how your existing users map to Entra ID. Build a list of local accounts, test matching with a pilot group, and decide in advance how duplicates will be merged. A partner adds the most value where matching rules, tenant policies or hosting design are contested across teams.
Does Microsoft login change BigBlueButton room or API behavior?
The sign-in change is made in Greenlight and Keycloak, so it sits in front of how users reach rooms. BigBlueButton API calls still carry a checksum computed with a secret shared with the server, so keep that secret out of web pages and plan any rotation in a maintenance window. Users who joined through a local login may see a different sign-in page, and links that depend on a specific account may need checking. Test room creation, moderator and guest joins, recording access and any LMS or API integration in the pilot before cutover. The scope should state which of these checks the partner runs and which your team repeats after go-live.
Does Keycloak need high availability for Microsoft login?
Keycloak needs high availability when a sign-in outage would block too many users, and that judgment belongs to you and your operations team. Keycloak documents a single cluster, optionally spread across availability zones, and multi-cluster designs. Both supported designs need a synchronously replicated database, which adds cost and operational work. For a pilot or a smaller Greenlight deployment, one Keycloak instance on a supported production database such as PostgreSQL 14 to 18, with tested backups and a documented restore, may be enough. Agree the availability target before the build starts, because when Keycloak is down, staff cannot sign in to Greenlight through Microsoft.
Which Keycloak database and upgrade settings should we confirm first?
Confirm the database engine, the schema migration method and the operator update mode before the build starts. Keycloak supports several production databases, including PostgreSQL 14 to 18, and its development file database is for testing only. By default Keycloak migrates its database schema at startup, which is simple for smaller deployments. Larger deployments may prefer to apply the SQL manually, as the Keycloak upgrading guide suggests. If you run the Keycloak Operator, the project strongly recommends manual approval mode for operator updates so upgrades do not happen unannounced. Ask the implementation partner to state which choices they recommend, why, and what upgrade plan for Keycloak is included in the scope.
Limits to confirm before rollout
Sign-in through Keycloak depends on six components that each carry a version, database, topology or platform limit. Check every card against the exact releases you plan to deploy, and record the answers before you schedule the cutover for staff accounts. Treat each item below as a decision to close before the cutover date.
Greenlight v3 external authentication
Greenlight v3 accepts external sign-in through OpenID Connect, configured with environment variables. The Greenlight docs suggest placing Keycloak in front of it to add Microsoft, Google, SAML and other login methods, so Keycloak becomes the single OpenID Connect provider Greenlight trusts. Confirm the Greenlight v3 release you will deploy and its exact environment variable names against the external authentication page, because the steps in this guide depend on them. Also confirm whether local accounts remain available during rollout.
External authentication docsKeycloak 26.8.1 release line
Keycloak 26.8.1 is the current release, published October 13, 2026, so it is the version to test this integration against. Since Keycloak 26.0 the project plans four minor releases a year, and breaking changes in a minor release are opt-in. Confirm that your deployment pins an exact version, that your upgrade plan covers each minor release you adopt, and that any breaking change you opt into is tested before it reaches production.
Backwards compatibility notesKeycloak production database choice
Keycloak supports MariaDB, Microsoft SQL Server, MySQL, Oracle Database, PostgreSQL 14 to 18, EnterpriseDB Advanced, Amazon Aurora PostgreSQL and Azure SQL in production. The file database is for development only, so your staging and production builds must point at one of the supported engines. Confirm the database version your Keycloak release supports, and check that your backup, restore and failover tests cover the database you choose, since Keycloak stores realms, users and client configuration there.
Database configuration guideMulti-cluster v1 is deprecated
Keycloak documents three high availability designs. The multi-cluster v1 design, which runs a separate Infinispan cluster per site, is deprecated, so avoid it for a new rollout. The supported designs are a single cluster, optionally spread across availability zones, and multi-cluster v2 without an external Infinispan cluster. Both supported designs require a synchronously replicated database, so confirm that replication before you choose a layout. Also identify which design your current Keycloak uses before you add Microsoft sign-in.
High availability overviewBigBlueButton 4.0 install requirements
BigBlueButton 4.0 installs on Ubuntu 24.04 64-bit. Direct upgrades from 2.6, 2.7 or 3.0 are not supported, so plan a clean server installation and migrate rooms and recordings deliberately. Confirm that the server meets the published RAM, CPU, disk and bandwidth minimums for your expected concurrency, that TCP ports 80 and 443 and UDP ports 16384 to 32768 are reachable, that you have a valid hostname for SSL and that Docker is available for document conversion. A TURN server is recommended for users behind restrictive firewalls.
Install docsMicrosoft tenant sign-in policies
Microsoft Entra ID applies tenant policies that can block the Keycloak sign-in before Greenlight ever sees it. Conditional access rules may require MFA, device compliance or trusted locations for the app, and admin consent settings decide whether users can approve the Keycloak application themselves. Confirm with your Microsoft tenant administrators which conditional access policies target the application, whether admin consent is required for the permissions Keycloak requests, and whether guest or external users are in scope. Test with a pilot group before automatic redirect is enabled.
How DeployOpen scopes and delivers Microsoft login for Greenlight
DeployOpen scopes Greenlight v3 sign-in with Microsoft accounts as a fixed-scope piece of work, with Keycloak brokering Microsoft Entra ID to the Greenlight OpenID Connect client in your infrastructure. Each step is named in advance so your identity and Greenlight owners can review it before any configuration begins.
How we scope
- The written scope names the Entra ID tenant, Keycloak realm and greenlight OIDC client in use.
- Scope also covers whether existing local Greenlight accounts stay active, and how they map to the Microsoft sign-in.
- Engagements are fixed-scope, so the written scope fixes deliverables and timelines before any configuration begins.
How we build
- Register Microsoft Entra ID as an identity provider in Keycloak, with redirect values checked by your identity team.
- Create the greenlight OIDC client in Keycloak and set Greenlight's OpenID Connect environment variables to match it.
- Configure automatic redirect to Microsoft sign-in and test local login fallback paths before any user is switched over.
How we hand over
- Hand over the Keycloak and Greenlight configuration as written settings your team can review and reapply.
- Provide a runbook for the Microsoft login flow, covering redirects, client secret location and account change steps.
- Walk your administrators through testing sign-in with a Microsoft account and with a local account before handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, and can include this login path.
- Keycloak plans four minor releases a year, so schedule login testing against each upgrade before rollout.
- Keep the client secret and Greenlight's OpenID settings under change control, since one without the other can break sign-in.

