How Rocket.Chat signs users in through Okta with OpenID Connect
If your identity team wants Okta to govern who can sign in to Rocket.Chat, the supported route is a Custom OAuth method using OpenID Connect, not SAML. This integration is available only on paid plans, so confirm your plan before you design around it. At sign-in, Rocket.Chat redirects the user to Okta's authorize endpoint, receives an authorization response, exchanges it at the token endpoint, and then reads the user's profile from the userinfo endpoint. Okta authenticates the user, applies its own policies (such as MFA prompts and sign-on rules), and Rocket.Chat accepts the identity it returns.
The sign-in path is defined by the Okta domain with /oauth2/v1 appended, followed by the /authorize, /token and /userinfo paths. The guide requests the scopes openid, email, profile, groups and offline_access. The fields that matter most are the key field that Rocket.Chat uses to match the Okta identity to an existing account, and the username field it maps to. Choose these deliberately, because a mismatch can create duplicate accounts or block existing users. Test both with a pilot group before go-live.
What you need in place before configuring Okta and Rocket.Chat
Okta and Rocket.Chat each need a few things settled before any endpoint is entered. Confirm the plan, the version, the tenant rights, the public address and the admin access first, because a gap in any one of them stops the custom OAuth setup partway through.
Paid Rocket.Chat plan
Okta's guide for Rocket.Chat states that Custom OAuth is available only on paid plans. The free Starter plan includes single sign-on, but the Okta path described in the guide depends on a custom OAuth method, so check the plan on your workspace before planning the build. Ask your Rocket.Chat contact to confirm which plan covers your user count and whether it includes this method.
Rocket.Chat plansSupported Rocket.Chat version
Pick a release line that is still supported on the day you go live. Standard releases get support for 6 months and LTS releases for 12 months. After end of life, a version gets no security or bug fixes, and it may lose connection to the official mobile and desktop clients, so an SSO project on an unsupported line creates work you will repeat later.
Version durabilityOkta tenant with app integration rights
The admin account used for setup needs permission to create a web application integration in your Okta tenant. Without it, you cannot register the client ID and client secret that Rocket.Chat uses. Confirm the current Okta admin console labels for creating an OIDC web app in your own tenant, since menu names change between console releases.
Okta domain for endpoint URLs
Your Okta domain, such as the tenant hostname you sign in to, is the base for every endpoint Rocket.Chat calls. The guide builds the authorize, token and userinfo URLs from that domain plus the /oauth2/v1 path. Record the exact domain, including any custom domain your tenant uses, before you fill in the Rocket.Chat form, so the paths do not point at the wrong host.
HTTPS address Okta can redirect to
Rocket.Chat must be reachable over HTTPS at the exact address Okta will redirect users back to after sign-in. The redirect URI registered in Okta must match the Rocket.Chat site URL character for character, including the scheme and path. Check the certificate chain, DNS and any reverse proxy rules before you register the app, because a mismatch shows up as a failed sign-in with little detail.
Admin accounts on both systems
Assign one named administrator in Rocket.Chat who can open the OAuth settings, and one Okta administrator who can create the app and assign users. Use named accounts rather than shared logins so changes are attributable. Agree who holds the client secret after setup, because it grants access to the integration and should be stored in your secrets process, not in a shared document.
Configuring the Okta web app and Rocket.Chat custom OAuth in sequence
This sequence connects an Okta web app to Rocket.Chat through a custom OAuth provider, so that users sign in with their Okta accounts and the Okta-side and Rocket.Chat-side settings match at every step.
Confirm the plan supports custom OAuth
Before any configuration, confirm with your Rocket.Chat account or in your own workspace that your plan includes Custom OAuth. The Okta guide states that Custom OAuth is available only on paid plans, and the free Starter plan's single sign-on coverage should not be assumed to include this method. Your administrator confirms this by opening the workspace administration area and checking that the Custom OAuth option is present. Do not start the Okta work until that check passes, because the rest of the sequence depends on it.
Create the Okta web app integration
In the Okta admin console, an administrator creates a new app integration using OIDC and the web application type. The redirect URI must be copied from the Custom OAuth page in Rocket.Chat, so generate that value first and enter it exactly, including scheme, host and path. Record the client ID and client secret shown after the app is saved. The step is complete when the app appears in the Okta applications list with the expected redirect URI and the client secret is stored in your secrets manager, not in a shared document.
Assign users or groups to the app
In the Okta app's Assignments tab, an administrator assigns the users or groups who should be able to sign in to Rocket.Chat. Group assignment is usually easier to maintain than individual assignment, but confirm that the groups you choose match the people who should hold Rocket.Chat accounts. The step is complete when a test user who is assigned can reach the Okta sign-in page for the app, and a user who is not assigned is refused access by Okta before Rocket.Chat is involved.
Add the Custom OAuth provider in Rocket.Chat
In Rocket.Chat's administration area, a workspace administrator adds a Custom OAuth provider and enters the client ID and secret from the Okta app. The base URL is your Okta domain followed by /oauth2/v1. The authorize, token and userinfo endpoints are set to the /authorize, /token and /userinfo paths beneath that base, and the scopes are openid, email, profile, groups and offline_access. Save the provider and keep it disabled until the next check passes. Confirm the exact field labels against the current Rocket.Chat Okta guide, since the admin screen may differ by version.
Verify the userinfo payload before enabling login
Before turning the provider on for users, test the endpoints with an assigned test account. Sign in through the Okta flow and confirm that the userinfo response contains the identifier, email and name fields that Rocket.Chat uses to match or create the account. Also confirm that the groups claim is present if you plan to use it. The step is complete when the returned payload contains the expected fields for the test user. If a field is missing, adjust the scopes or the claim configuration in Okta before continuing.
Map the key and username fields
Set the identity key and username fields in the Rocket.Chat provider so they point to the claims returned in the userinfo payload from the previous step. Choose a stable, unique field such as the user's email or Okta subject identifier, and document the choice, because changing it later can create duplicate accounts. The step is complete when a second test login with the same user reuses the existing Rocket.Chat account rather than creating a new one, and the username and email match the Okta profile.
Enable the provider and run a full test login
Enable the Custom OAuth provider and show the login button on the Rocket.Chat sign-in page. Test with at least one assigned user and one unassigned user, from a fresh browser session. The assigned user should reach the workspace with the expected account and roles, and the unassigned user should be blocked at Okta. Record the test results and the Okta app and Rocket.Chat provider settings in your change record. The sequence is complete when both tests behave as expected and the team agrees on who owns future changes to the provider.
How a Rocket.Chat login travels through Okta and back
The login starts in the user's browser on the Rocket.Chat login page. Rocket.Chat redirects the browser to Okta's /authorize path, where the user signs in, and Okta sends an authorization code back to the Rocket.Chat callback. The server-side hand-offs are the important part: Rocket.Chat exchanges the code at /token, calls /userinfo for the profile claims, and then creates or matches the local account. The trust boundary sits around the Rocket.Chat server, so check that the token and userinfo calls leave it over HTTPS and that the claims mapped to the username and email fields are the ones you expect.
Sequence of the OpenID Connect login, with the Rocket.Chat server inside the trust boundary.
Which Okta claims map to Rocket.Chat identity fields
This table compares each identity field Rocket.Chat needs from the Okta userinfo response with the claim typically expected to supply it. Use it to check the payload from your own Okta tenant before you save the custom OAuth settings, because the exact key and username names must match what your tenant returns. Group claims from the groups scope do not become Rocket.Chat roles on this path, so role assignment needs a separate plan.
| Rocket.Chat field | Typical Okta claim to confirm | What to check before go-live |
|---|---|---|
| Identity key | Unique subject identifier (sub) | Confirm the value is stable per user and does not change when a username or email changes. |
| Username field | Login name claim, often preferred_username or a custom attribute | Confirm which claim carries the name you want as the Rocket.Chat username and that it is unique across users. |
| Email field | email claim, released by the email scope | Confirm the claim is present for every user who will sign in, since accounts without it may fail or need manual handling. |
| Display name | name claim, released by the profile scope | Confirm the name claim contains the display name your staff expect to see in messages and member lists. |
| Group membership | groups claim, released by the groups scope | Groups arrive in the userinfo response but do not automatically set Rocket.Chat roles on this path. Plan role assignment separately. |
| Claim names in config | Keys entered in the custom OAuth settings | Match key and username names exactly to the userinfo payload. Test with one account and inspect the returned JSON before opening access. |
How the setup differs for test, staging and production tenants
The sandbox Okta tenant is where the team learns the OpenID Connect settings without touching real users. Use it to confirm which fields Okta returns, how the groups claim is populated, and which scopes produce the attributes Rocket.Chat needs. Expect to change values several times here, so keep it disposable and treat anything configured in it as provisional.
- Throwaway test users: Create a small set of test accounts with known group memberships so you can check the key and username fields against real claims.
- Scope testing: Request openid, email, profile, groups and offline_access, then inspect the userinfo response to confirm each claim arrives.
- Local test endpoints: Point the custom OAuth method at a non-production Rocket.Chat address only if you have one that Okta can reach, and record the exact redirect URI you tested.
- Notes on the client secret: Generate a sandbox client secret for trial use only and never copy it into a shared document or the production configuration.
- Export the working values: Write down the final paths, scopes and field names so staging starts from a known list instead of memory.
Before leaving the sandbox, confirm with your Okta administrator which of these settings your tenant's plan and policies allow, since the exact options vary by configuration.
Staging is a Rocket.Chat instance that uses the same hostname scheme, TLS setup and redirect URI pattern as production, but serves a limited group of testers. Its job is to prove the redirect URI and the sign-in round trip work exactly as they will in production. A staging check that uses a different URL than production proves very little about the production callback.
- Matching redirect URI: Register the staging callback URL in the Okta app and confirm it matches the Rocket.Chat base URL character for character, including the scheme and any trailing path.
- Separate client registration: Create a distinct Okta web app for staging so its client ID and secret can be rotated without affecting production.
- Secret storage: Store the staging client secret in your standard secrets manager or the environment configuration your team uses for server settings, not in the admin panel of a shared workspace.
- Tester assignment: Assign only a named test group to the staging app in Okta so the sign-in path reflects the assignment rules you plan to use in production.
- Login and logout checks: Test first sign-in, returning sign-in, a user without assignment and a sign-out, then record the results.
Confirm that the staging redirect URI, client secret source and assignment group are each recorded as separate items from production.
Production differs from staging mainly in who can sign in and how quickly you can reverse a change. Assignment should be controlled by a named Okta group, changes should be made in a planned window with a named owner, and the previous configuration should be saved so you can restore it. Because the paid-plan requirement for Custom OAuth applies to the workspace, confirm the license state before the cutover rather than during it.
- Controlled assignment: Assign the production Okta app to a named group that the identity team owns, and add users in batches rather than opening it to the whole directory at once.
- Client secret handling: Store the production secret in your secrets manager with restricted read access, and set a documented rotation owner.
- Rollback path: Keep the prior login method enabled until the new flow is verified, and record the steps to disable the custom OAuth method and restore the previous sign-in.
- Admin access: Make sure at least one local administrator account can still sign in if the identity provider is unavailable, and test that account before the change.
- Change record: Log the redirect URI, scopes, paths, assignment group and approver for the change so auditors can trace it later.
Before cutover, verify the license state, the assignment group and the rollback steps with the people who will act on them.
Securing the Okta OAuth connection in Rocket.Chat
A custom OAuth connection makes Okta the front door to Rocket.Chat, so its security depends on the client secret, the Okta app assignments, the Okta policies and the Rocket.Chat admin settings working together. The cards below cover the controls to set on both sides and the decisions to make before go-live.
Protect the client secret
The Okta client secret is what Rocket.Chat presents when it exchanges an authorization code for tokens, so anyone holding it can impersonate the application. Store it in a secrets manager or a restricted configuration source, not in shared documents or chat, and confirm who can view it in the Rocket.Chat administration screens. Plan a rotation step in Okta and Rocket.Chat together, so a rotation does not lock users out.
Okta guideRestrict app assignments to intended groups
In Okta, an application can be assigned to everyone in the org by default. Limit assignment to the groups that should reach Rocket.Chat, and review that list when staff change roles or leave. Users who are not assigned cannot start the OAuth flow, which keeps unrelated accounts out even if they hold valid Okta credentials. Confirm the group list with the business owner of the chat platform.
Require Okta MFA policies on the app
Attach an authentication policy to the Rocket.Chat application in Okta that requires a strong factor for sign-in, and decide how often users must re-authenticate. Rocket.Chat's own two-factor settings do not replace this, because OAuth users sign in through Okta first. Test the policy with a sample account from each assigned group before you enable it for everyone.
Serve Rocket.Chat only over TLS
The authorization redirect, the token exchange and the userinfo call all carry sensitive values, so the Rocket.Chat site URL and every redirect URI must use HTTPS with a valid certificate chain. Confirm that the redirect URI registered in Okta matches the production address exactly, and remove any test URIs that point to other hosts. Plain HTTP access to the login page should redirect to HTTPS rather than remain available.
Limit who can edit OAuth settings
Changes to the custom OAuth provider in Rocket.Chat alter who can sign in and where users are sent, so editing rights should sit with a small group of administrators. Assign the admin role to named people only, review that list periodically, and log configuration changes through your audit process. Restrict the permission that controls administration, and check who can reach the admin settings from the network.
Decide on a local break-glass login
If Okta is unavailable or misconfigured, administrators may be locked out of Rocket.Chat entirely. Decide whether a local password login remains enabled for a small set of named break-glass accounts, and if so, protect those credentials, keep them out of daily use and test them on a schedule. Treat this as a separate decision from two-factor enforcement in Rocket.Chat, which controls how second factors apply to accounts that use passwords.
Why Okta sign-in to Rocket.Chat fails and how to fix it
This table lists the failures most often seen when wiring Okta into Rocket.Chat through a custom OAuth method, with the likely cause and the fix for each. Check the plan tier and the Okta app settings first, since those two causes block the rest of the setup.
| Failure | Likely cause | Fix |
|---|---|---|
| Redirect URI mismatch on sign-in | The redirect URI registered in the Okta web app does not match the callback URL Rocket.Chat sends, often because the server URL or protocol differs between the two. | Copy the callback URL shown in Rocket.Chat's custom OAuth settings exactly, including scheme and path, and register that value in the Okta app. |
| Wrong Okta domain or base URL | The Okta domain is mistyped, or the base URL includes an extra path, so the token, authorize and userinfo calls go to the wrong place. | Use your Okta org domain with the /oauth2/v1 path as the base, then confirm the /token, /authorize and /userinfo paths resolve. |
| Missing offline_access or groups scope | The requested scopes omit offline_access or groups, so refresh behavior or group data is not returned, or the consent step fails. | Request openid, email, profile, groups and offline_access as listed in the guide, and confirm the Okta authorization server issues those scopes. |
| Userinfo returns a different key field | The key or username field configured in Rocket.Chat does not match a claim present in the Okta userinfo response, so accounts fail to map or are created with the wrong identifier. | Call the userinfo endpoint with a test token, inspect the returned claims, and set the key and username fields to match the actual claim names. |
| Custom OAuth option missing | The workspace is on a plan that does not include Custom OAuth, which the Okta guide states is available only on paid plans. | Check the workspace plan under administration before troubleshooting further, and confirm the tier with Rocket.Chat before the build starts. |
| Certificate trust errors on a private CA | Okta or your internal endpoints use a certificate chained to a private CA that the Rocket.Chat server does not trust, so token or userinfo requests fail on TLS. | Install the private CA root into the Rocket.Chat server and container trust stores, then retest the token and userinfo calls from that host. |
Questions teams ask before configuring Okta SSO for Rocket.Chat
Does Custom OAuth with Okta need a paid Rocket.Chat plan?
Yes. The Rocket.Chat Okta guide states that Custom OAuth is available only on paid plans, so the free Starter plan, which includes single sign-on through its own feature list, does not give you this OpenID Connect setup path. Confirm the current plan tier that includes Custom OAuth with Rocket.Chat before you buy, since plan contents can change between releases. Ask your Rocket.Chat account contact to confirm in writing which plan covers your user count and whether Okta is covered by the same entitlement. Pricing is by quote, so the licensing cost depends on the written scope and the plan you select.
Can Rocket.Chat use SAML with Okta instead of OpenID Connect?
The Rocket.Chat Okta guide uses OpenID Connect through a custom OAuth method rather than SAML, so that is the documented path for this topic. SAML with other identity providers is covered in separate Rocket.Chat guides. Choosing between the two protocols should follow your Okta app configuration, the claims you need, and how your team will support the integration later. Before you commit, confirm with Rocket.Chat and your Okta administrator which protocol your plan and version support for your exact deployment, and check the vendor documentation for any changes.
How much effort does an Okta SSO setup for Rocket.Chat take?
Effort depends mostly on how many moving parts the setup has, not on the single sign-on steps alone. The main drivers are the Okta web app integration, the token, authorize and userinfo endpoints, the scopes and claim fields that map to usernames and email, testing across user types, and your existing Rocket.Chat hosting, TLS and plan configuration. Teams with an Okta administrator, a Rocket.Chat administrator and a test tenant usually move faster. No duration is set by the supplied facts, so ask any partner to break the estimate into discovery, build, test and handover, and to state which items are included in the fixed scope.
What must our team supply before the Okta configuration starts?
Prepare the inputs that the configuration depends on before any work begins:
- Okta admin access to create or edit the web app integration, plus the client ID and client secret it issues
- Your Okta domain and the authorization server details that form the OAuth URL
- A Rocket.Chat administrator account on a plan that supports Custom OAuth, with access to the server settings
- The decision on which Okta attribute provides the username and email key fields
- A test group of users, a staging Rocket.Chat instance and a rollback plan for production
Confirm the exact field names and paths against the Rocket.Chat Okta guide for your version, because they can differ between releases.
Can our own team configure Okta SSO for Rocket.Chat in-house?
Often yes, if your team has an Okta administrator, someone who manages Rocket.Chat server settings, and time to test. The Rocket.Chat Okta guide documents the steps, so an internal team can follow it in a staging environment first. The main risks are misconfigured scopes or key fields that lock users out, and gaps in testing before go-live. Decide whether you want internal ownership of the setup and the ongoing support, or a fixed-scope engagement with written deliverables and a test plan. DeployOpen plans and implements self-hosted platforms in your own infrastructure, so it can take on the work if you prefer that model.
Does Okta sync groups or roles into Rocket.Chat automatically?
The supplied Okta guide describes a custom OAuth setup that requests a groups scope, but the facts provided for this topic do not confirm that Rocket.Chat maps Okta groups to Rocket.Chat roles through this method. Do not assume role or group sync works from the scope alone. Check the Rocket.Chat documentation for your version and ask whether group mapping, role updates and room membership changes are supported with Custom OAuth. Plan access manually until that behavior is confirmed in a test environment.
How long should testing take before we go live with Okta SSO?
No testing duration is set by the supplied facts, so plan it from your own user population and risk tolerance. Testing should cover a sign-in for each user group, the token and userinfo exchange, the username and email fields, logout behavior, and what happens to existing local accounts. Run the same checks in staging after each Rocket.Chat or Okta change. Ask any implementation partner to list the test cases, the sign-off owner and the rollback steps in the written scope before the build begins.
What should we confirm about our Rocket.Chat version before configuring Okta?
Confirm that your Rocket.Chat version is still within its supported window, because end-of-life versions receive no security or bug fixes, and some cloud services stop working. Standard releases are supported for 6 months and LTS releases for 12 months, according to the Rocket.Chat version durability documentation. Rocket.Chat 8.9.0 was published on October 5, 2026. If you are on an older line, plan an upgrade before the identity work so you test the OAuth setup on the version you will run. Check the Rocket.Chat release notes and durability pages for your exact line.
What operating the Okta connection requires after go-live
Once the Okta connection works, the Okta client secret becomes a recurring credential to manage. The custom OAuth method in Rocket.Chat stores the client ID and secret from the Okta web app integration, so the secret needs a rotation schedule, a named owner, and a documented way to update the Rocket.Chat administration settings without a sign-in outage. Confirm with your Okta administrators how secrets are generated and expired in your tenant, and rehearse the swap in a staging workspace first. Also confirm which Okta group, if any, gates the app assignment, since that gate decides who can sign in at all.
Access drifts over time, so review the Okta app assignments whenever people join, change teams or leave. Removing someone from the Okta application stops new sign-ins, but it does not end sessions they already hold, so pair assignment reviews with Rocket.Chat's own account deactivation and check how your team handles active sessions. Scopes (openid, email, profile, groups and offline_access) and the username and email fields should also be re-checked whenever Okta policies or claim configuration change, because a silent change there can break sign-in for a subset of users.
Plan a re-test after every Rocket.Chat upgrade and keep the version on a supported line. Rocket.Chat supports standard releases for 6 months and LTS releases for 12 months, and after end of life a version receives no security or bug fixes. Cloud services such as the push notification gateway also stop working, and unsupported versions may lose the ability to connect with the official mobile and desktop clients. Check the Rocket.Chat version durability documentation against your chosen release line each quarter, and treat each upgrade as a change that requires a sign-in test with Okta before users are moved to the new version.
How DeployOpen scopes and delivers Rocket.Chat identity integrations
DeployOpen plans, builds and hands over Rocket.Chat single sign-on with Okta through OpenID Connect inside your own infrastructure. Each engagement starts from a written scope that names the Okta tenant, the Rocket.Chat plan, the test users and the login behavior you need before any configuration changes are made.
How we scope
- Confirm your Rocket.Chat plan first, since Custom OAuth in the Okta guide is available only on paid plans.
- Record the Okta tenant, app integration type, assigned groups and which users sign in through Okta.
- Agree in writing whether roles, channel membership or two-factor settings are in or out of this engagement.
- Engagements are fixed-scope, with scope, deliverables and timelines agreed before work starts.
How we build
- Create the Okta web app integration and set the redirect and sign-out values to match your Rocket.Chat domain.
- Configure the custom OAuth method with the Okta domain plus /oauth2/v1 base, plus token, authorize and userinfo paths.
- Set the scopes openid, email, profile, groups and offline_access, and map the key and username fields to your naming standard.
- Test sign-in with a pilot group of accounts, including a user without an Okta assignment and a user whose account already exists.
How we hand over
- Deliver the configuration record with every setting, the Okta app settings and the test results in one document.
- Document the steps to add a new Okta group, rotate the client secret and roll back to local login if needed.
- Walk your identity and platform teams through the sign-in flow, error messages and where to read Rocket.Chat logs.
- Leave the Okta admin tasks and Rocket.Chat admin tasks assigned to named owners in your organization.
How we support
- Offer ongoing support, upgrades and continuous testing as retainers when your Rocket.Chat version or Okta settings change.
- Retest sign-in after each Rocket.Chat upgrade, since unsupported versions can lose connectivity with official clients.
- Review the OAuth settings when Okta endpoints, scopes or application ownership change in your tenant.
- Ask for a quote that separates the one-time build from any recurring retainer before you sign the scope.

