What the modern OAuth flow with PKCE changes for Rocket.Chat sign-in
Teams need this section when users want to sign in to Rocket.Chat with passkeys or hardware security keys, but the sign-in path does not use the identity provider's browser session cleanly. In the older setup, the sign-in form and the identity provider's browser session can end up in separate contexts, so the passkey or key that the user already relies on elsewhere may not be offered at the point of sign-in. The modern OAuth flow with PKCE addresses this by moving the authorization step into a standard browser exchange that uses Proof Key for Code Exchange, which protects the authorization code on the way back to the client. Rocket.Chat exposes this behind the Accounts_OAuth_Use_Modern_Flow setting, added in Rocket.Chat 8.7.0.
For SAML, the change is larger. From Rocket.Chat 8.8.0, SAML sign-in on mobile and desktop happens in the system browser, which supports passkeys and security keys. This only works when the Use Modern OAuth Flow setting is enabled, so the two settings should be planned together rather than treated as separate tasks. Before you change anything, confirm which Rocket.Chat version each client population runs, because users on older desktop or mobile builds will not get the system-browser path. Also confirm with your identity provider that passkeys and security keys are enabled for the users and that the browser sign-in policy allows them.
Teams do not need this change if their users sign in with passwords and an authenticator app that works inside the existing flow, or if the identity provider only enforces one-time codes. It also matters less when the Rocket.Chat deployment is web-only and users never sign in from desktop or mobile clients. Before enabling the settings, test the full sign-in on a staging workspace with a pilot group, record which clients reach the system-browser step, and plan a fallback for users whose devices cannot complete it. The setting details and client behavior should be checked against the Rocket.Chat SAML configuration docs for your exact version.
How a modern sign-in moves between the client, system browser and identity provider
The sign-in starts in the Rocket.Chat desktop or mobile client, which hands the SAML request to the system browser instead of an embedded web view. The browser talks to the identity provider, where the user completes authentication with a passkey or security key, and the identity provider returns the assertion through the browser to the Rocket.Chat server. Check that Use Modern OAuth Flow is enabled, that the browser sits outside the app boundary, and that the server issues the client session only after the assertion is validated.
Modern OAuth sign-in on mobile and desktop, with the trust boundary at the system browser.
Which sign-in flow and settings fit each environment
This table compares the legacy OAuth path, the modern PKCE flow, and SAML sign-in in the embedded client view versus the system browser. Read each row against your identity provider, the Rocket.Chat version you run, and the mobile and desktop client versions your users install. The main takeaway is that passkey and security key support depends on moving sign-in into the system browser, and that setting change needs its own test cycle and rollback plan.
| Option | Setting and what it enables | Client versions and dependencies | Operational trade-off |
|---|---|---|---|
| Legacy OAuth path | Default custom OAuth flow without PKCE. Works with existing identity provider app registrations unchanged. | Works across the server versions in your current line. Confirm the client versions your users run still accept it. | Lowest change effort, but it does not give the browser-based passkey and security key sign-in this topic covers. Keep a rollback path documented. |
| Modern OAuth flow with PKCE | Accounts_OAuth_Use_Modern_Flow setting, added in Rocket.Chat 8.7.0. Adds PKCE to the OAuth exchange. | Requires Rocket.Chat 8.7.0 or later. Confirm the identity provider app registration accepts PKCE for your client type. | Needs a test pass against each OAuth provider and a documented way to switch the setting back if sign-in breaks. |
| SAML inside the embedded client view | Default SAML sign-in on mobile and desktop, with the identity provider page shown inside the app. | Works without the modern flow setting. Embedded views may not offer the passkeys or security keys your identity provider supports. | Lower change effort, but users cannot use their platform authenticators at the identity provider from this view. |
| SAML in the system browser | From Rocket.Chat 8.8.0, sign-in runs in the system browser. Requires the Use Modern OAuth Flow setting. | Requires Rocket.Chat 8.8.0 or later on the server and matching mobile and desktop client versions. Confirm each client build your users install. | Supports passkeys and security keys at the identity provider. Testing covers every platform, and older clients need a planned cutover window. |
| Mixed fleet during rollout | Some users on older clients and some on current clients, with the setting enabled on the server. | Older clients may fail to complete sign-in after the setting change. Inventory client versions before enabling. | Highest support load during transition. Confirm whether you can roll out by user group or must switch the whole server at once. |
What users see on web, mobile and desktop after the switch
The web client opens inside the user's browser tab, so the identity provider's own sign-in page already runs in that browser. The supplied material ties the system-browser behavior to SAML sign-in on mobile and desktop, so do not assume the web client changes in the same way. Confirm the web sign-in path in your version's release notes and on a test tenant before you describe it to users.
- Login page: Users sign in on the identity provider page they already know, with the same username, password and multi-factor prompts.
- Passkeys and security keys: These are offered wherever the identity provider presents them, which depends on how the identity provider is configured for the browser.
- Browser support: Passkey and security key prompts depend on the browser and operating system, so test the browsers your users actually run.
- Settings: Confirm whether the Use Modern OAuth Flow setting alters the web path in your version before you announce any change.
- Help desk: Expect questions only if the web path changes in your environment, so record what you observe in testing.
Before rollout, sign in with each supported browser on a test account and confirm that the Rocket.Chat web client completes sign-in and returns the user to the workspace.
From Rocket.Chat 8.8.0, SAML sign-in on mobile happens in the system browser instead of inside the app. The system browser supports passkeys and security keys, so the identity provider can offer them during sign-in. This behavior requires the Use Modern OAuth Flow setting, which is controlled by the Accounts_OAuth_Use_Modern_Flow key.
- Sign-in handoff: After the user enters the workspace address, the app opens the system browser for the identity provider sign-in page, then returns the user to the app.
- Passkeys and security keys: The identity provider presents them in the system browser, where the phone's passkey store or a paired security key can respond.
- What stays the same: The workspace address, the identity provider's credentials, its multi-factor policy and the user's account in Rocket.Chat are unchanged.
- First weeks: Expect questions about why a browser window appears, and confirm that the mobile app version on each device supports this flow.
- Server setting: Users on an older app version may hit a different path, so verify the app versions in circulation before enabling the setting for everyone.
Before you switch on the setting, test sign-in on each mobile platform your users run, including a first sign-in on a fresh install.
The desktop app follows the same principle as mobile for SAML sign-in: from Rocket.Chat 8.8.0, sign-in runs in the system browser and requires the Use Modern OAuth Flow setting. The desktop app is therefore the client most likely to show a browser window during the first sign-in after the change, and help desk teams should plan for that.
- Sign-in handoff: The app opens the system browser for the identity provider page, then returns the user to the desktop app once sign-in completes.
- Passkeys and security keys: Presentation depends on the operating system and browser, so test on each desktop platform and browser your organization supports.
- What stays the same: Identity provider credentials, multi-factor policy and the Rocket.Chat account and roles remain as they were.
- Client versions: Confirm the minimum desktop app version for this flow in the release notes, and check which versions your users run.
- First weeks: Expect tickets about browser prompts, blocked pop-ups or a window that stays open after sign-in, and keep a short troubleshooting script for those cases.
Before rollout, record the exact steps and prompts you see on each operating system, then give the help desk those screenshots as the reference for the first weeks.
How to switch Rocket.Chat to the modern flow without locking out users
This sequence moves Rocket.Chat onto the modern OAuth flow with PKCE and system-browser SAML sign-in one checked step at a time, so passkeys and security keys work at the identity provider while an admin account stays available to reverse any change.
Confirm the Rocket.Chat version and settings
The platform team checks the running Rocket.Chat version before changing anything. The modern OAuth flow is controlled by the Accounts_OAuth_Use_Modern_Flow setting, which was added in Rocket.Chat 8.7.0, and system-browser SAML sign-in on mobile and desktop starts from 8.8.0 and requires that setting. Confirm the version under Administration, record it in the change ticket, and check the release notes for any later changes. Done when the version and the setting names are written down and match what the team will use.
Build and test in a non-production workspace
Restore a recent copy of the production database into a separate non-production workspace running the same Rocket.Chat version, with its own URL and identity provider test application. Keep production users and mail delivery out of this copy. Sign in with a test user through the current method, then through the modern flow, and confirm that channels, file uploads and the mobile and desktop clients behave as expected. Done when the test workspace passes every sign-in path the team plans to enable in production.
Keep a local admin account and record the rollback
Before production changes, confirm that at least one administrator can sign in without the identity provider, using a local password that is stored in the team's secrets vault. Record the current values of the OAuth and SAML settings so they can be restored by hand. Ask the platform team to confirm that they can reach the Administration area and the database backup independently of the identity provider. Done when a named admin has signed in successfully with the local password and the previous settings are saved.
Enable the modern OAuth flow setting
In production, a Rocket.Chat administrator turns on the Accounts_OAuth_Use_Modern_Flow setting in the OAuth section of Administration, then saves the change during a planned window. Existing OAuth providers keep their configured endpoints, so the team reviews each provider's configuration for the PKCE-capable flow. Ask users to sign out and sign back in with one test account first. Done when that test account signs in through the OAuth provider and the admin audit log records the setting change.
Enable the system-browser SAML path
On a version that supports it, the administrator confirms the SAML provider settings and that the modern OAuth flow setting is on, because system-browser SAML sign-in depends on it. The SAML provider's entry point, certificate and callback URLs are checked against the current Rocket.Chat configuration documentation. Test sign-in first from a desktop browser, then from the mobile client. Done when a test user completes SAML sign-in through the system browser on each client type without a browser-based error.
Configure the identity provider for passkeys and security keys
The identity team enables passkeys, FIDO2 security keys or both in the identity provider's authentication policy, and assigns them to the groups that will sign in to Rocket.Chat. Confirm the required authentication methods for each group and whether a fallback method is allowed for account recovery. Ask the identity provider vendor which passkey and key options apply to the enterprise tenant in use, since these features vary by product and license. Done when a test user registers a passkey or security key and signs in to Rocket.Chat with it on the desktop and mobile clients.
Verify sign-in and roll out in stages
The platform team runs a sign-in check for each client, including web, desktop and mobile, with a pilot group of users who represent the main roles. Check that user profiles, roles and channel membership are unchanged after login, and that the local admin account still works. Expand to the full user base only after the pilot shows no lockouts. Record any issue and the rollback step taken. Done when the pilot group has signed in on every client and the rollout decision is recorded.
Security checks that matter when passkeys move to the identity provider
Moving Rocket.Chat sign-in to the modern OAuth flow shifts where authentication strength is decided. The checks below cover the identity provider, Rocket.Chat's own 2FA, admin accounts, sessions, audit evidence and shared machines, and they should be reviewed together before users are switched over.
IdP policy decides passkey enforcement
Passkeys and security keys are only enforced where your identity provider requires them. Rocket.Chat does not decide which second factor a user must present at the IdP, so confirm the conditional access or authentication policy that applies to the Rocket.Chat application and test it with a sample account in each user group. Check that the policy applies to the system browser sign-in path, not only to the web login, because mobile and desktop clients now use that path.
SAML configuration docsLayering Rocket.Chat 2FA on top of IdP MFA
Rocket.Chat's own two-factor settings can run alongside the factor the IdP already enforced, which can produce a double prompt or a sign-in path that skips one check. Decide which layer is authoritative for each user population, document it, and test OAuth users separately from password users. Confirm how email codes behave for accounts that never set a local password, since those accounts depend entirely on the IdP.
Protecting admin accounts during the switch
Administrators are the accounts an attacker most wants, and a sign-in method change is a common moment for mistakes. Before cutover, keep at least one break-glass administrator on a path that does not depend on the new flow, store its credentials under your normal controls, and confirm that the admin roles still map correctly after the first sign-in. Review admin role assignments before and after the change and remove any account that no longer needs elevated access.
Session lifetime and remote device logout
A passkey sign-in does not automatically end sessions that are already open on lost, reused or shared devices. Set how long Rocket.Chat sessions and IdP sessions last, and confirm how each side revokes a session when a user leaves or reports a device lost. Device management is a premium feature, so if your plan does not include it, write down the manual procedure your team will use to end sessions and test it once.
Audit trails for each sign-in
After the switch, the sign-in record you need for review may sit in two places: the identity provider's log and Rocket.Chat's own records. Confirm which events each system logs, including the authentication method used, the user, the time and the source, and whether the entries can be exported to your log platform. Tamper-evident audit trails of messages, files and sessions are listed on paid plans, so check your plan before relying on them as evidence.
Rocket.Chat pricingCredentials on shared and borrowed devices
The system browser keeps the IdP session and any passkey prompt outside the Rocket.Chat client, so a shared computer may keep a signed-in browser profile after the chat app is closed. Write a rule for shared endpoints covering when users must sign out of the IdP, how kiosks clear browser data, and whether passkeys stored on removable security keys are required for sign-in. Test the sign-out path on a shared machine before you publish the guidance.
Why the rollout order decides whether the switch stays reversible
The order of changes decides whether you can step back if sign-in breaks. Three things move in this switch: the Rocket.Chat server version, the identity provider configuration, and the clients that users run. The modern OAuth flow is controlled by the Accounts_OAuth_Use_Modern_Flow setting, which was added in Rocket.Chat 8.7.0, and SAML sign-in on mobile and desktop moves to the system browser from 8.8.0 and also requires that setting. So the server must already run a version that includes the setting before anyone turns it on, and the identity provider must accept the new flow before the setting is enabled in production. Confirm the exact version gates for your current line in the Rocket.Chat release notes before you schedule anything.
Pilot with a small group on each client type before you change the setting for everyone. Mobile and desktop users may need updated clients before the change, because older builds may not handle the system-browser sign-in path, and a client that cannot sign in is hard to separate from a server or identity provider fault. Choose a few testers for web, desktop, iOS and Android, record which client version each one runs, and have them test passkey and security key sign-in as well as password fallback. Keep the setting enabled only for that group until each client type has worked end to end. The reversal path should be written down first: who can turn the setting off, and how users recover if their passkey prompt fails.
Avoid planning a server version upgrade in the same window as the sign-in change. When both happen together, a login failure could come from the new version, the new flow, an identity provider claim, or a client build, and the team cannot tell which change caused it. Complete the upgrade and let it run for a stable period first, then enable the modern flow as a separate change with its own rollback step. If a version upgrade is already fixed on the calendar, record the exact version before and after, keep the identity provider settings unchanged during that window, and confirm the upgrade path with your vendor or partner. Unsupported versions can also stop working with official clients, so the upgrade cannot be postponed indefinitely.
Limits to confirm before you change the sign-in flow
Switching to the modern OAuth flow changes how sign-in reaches your identity provider and your users' devices. The items below are what to confirm in your own environment before you change a setting, because each one can block passkey sign-in or break existing logins if it turns out differently from what you assumed.
Your current version and support end date
The modern flow depends on a setting added in Rocket.Chat 8.7.0, and SAML sign-in in the system browser arrived in 8.8.0. Confirm which version your workspace runs and whether that line still receives security fixes. Standard releases are supported for 6 months and LTS releases for 12 months, and an end-of-life version gets no fixes. Upgrade first if you are below the version that carries these settings.
Version durability docsPasskey and security key support at your identity provider
Passkeys and security keys are verified by the identity provider, not by Rocket.Chat. Confirm that your provider offers passkeys or security keys for the accounts that will sign in, and that the policy allows them for those users. A provider that supports passkeys in its own web portal may still restrict them for federated apps, so test with a real account before rollout.
Plan features needed for SSO
SSO, LDAP and Active Directory authentication, and multi-factor authentication are available on the free Starter plan within its user limit. Group mapping, certain premium SSO settings and redundancy features sit on paid plans. Confirm which features your sign-in design needs and whether your current plan includes them, since a quote is required for paid plans.
- Starter user limit
- 50
Mobile and desktop client versions in use
Sign-in in the system browser depends on the official mobile and desktop clients being recent enough to support it. Inventory the client versions your users run, including managed devices that update slowly. Rocket.Chat notes that unsupported versions may lose the ability to connect with official clients, so plan a rollout window and confirm which users must update before the setting is enabled.
Behavior of custom OAuth configurations
If you use a custom OAuth provider, the modern flow may change how tokens, redirect URIs and PKCE parameters are handled. Test each existing custom OAuth configuration in a staging workspace with a non-admin account, and confirm that username and email mapping still produce the same accounts. Keep the previous settings documented so you can revert if an existing integration fails.
Limits stated in the release notes
Release notes list the settings, supported providers and known exceptions for each version. Read the notes for your target release line directly, and do not assume that a limit listed for SAML also applies to your OAuth provider, or the reverse. Record any exception you find and confirm it with Rocket.Chat or in a test before you make the change in production.
Release notesQuestions teams ask before switching to passkey sign-in
Can our own team switch Rocket.Chat to the modern OAuth flow without a partner?
Yes, a team with Rocket.Chat administration experience and access to the identity provider can make the change, because the core work is a settings change plus identity provider configuration. The decision depends on who owns each piece: the Rocket.Chat administrator, the identity provider administrator, and whoever tests the mobile and desktop clients. The modern flow is controlled by the Accounts_OAuth_Use_Modern_Flow setting, which was added in Rocket.Chat 8.7.0, and SAML sign-in in the system browser requires the Use Modern OAuth Flow setting from 8.8.0. Confirm your running version first, because a team on an older line will need an upgrade before any of this applies.
What does the work need from our side?
The work needs a named Rocket.Chat administrator, an identity provider administrator who can change application registrations or SAML settings, and people who can test sign-in on every client you use. You also need a change window, a rollback plan, and a list of which users sign in with which method today. Confirm that your Rocket.Chat version and the official mobile and desktop client versions support the flow together, since Rocket.Chat notes that unsupported versions can lose the ability to connect with the official clients.
What drives the cost and effort of this change?
The main drivers are how many identity providers and sign-in methods you run, how many client types need testing, and how much of your identity configuration is custom. A single SAML provider with a few desktop and mobile clients is a small test matrix, while several providers, legacy custom OAuth setups and Windows or macOS fleets add test cases and coordination. Cost is mostly staff and testing time, and it is one-time for the switch, plus recurring time for upgrades that change the sign-in path. When you request a quote, ask for the written scope to list each identity provider, each client platform, and the test cases you expect the provider to run.
How long does a pilot take to plan?
Planning length depends on the number of identity providers, the clients in scope and how quickly your identity administrators can make changes and approve test accounts. No duration is supplied for this change, so ask for a timeline in the written scope rather than assuming one. A useful plan covers a pilot group that includes users on desktop and mobile, a defined set of passkey and security key tests at the identity provider, and a go or no-go review before wider rollout. Also plan for the upgrade prerequisites first, because those can take longer than the sign-in change itself.
Can we keep password sign-in during the transition?
Generally, yes, because the modern flow changes how OAuth and SAML sign-in is performed, and existing password or LDAP sign-in is a separate method that you can leave enabled during testing. Confirm this in your own environment before you start, since how each identity provider and client behaves during the overlap depends on its configuration. Keep the existing method available until the pilot passes on every client, and record which users depend on it so you can remove it deliberately instead of by accident.
What happens to existing sessions after the switch?
Existing sessions are not guaranteed to behave the same way after a sign-in method changes, so plan for users to sign in again and check how your clients handle that. Use the device session tools in Rocket.Chat to see which clients each user is signed in on, and decide in advance whether you will log out shared or unknown devices as part of the change. Test a session that was created before the switch and one created after it on each client platform before you widen the rollout.
Does this change reduce the risk of phishing?
It can reduce exposure to password phishing for users who move to passkeys or security keys at the identity provider, because those credentials are bound to the device or key and are not typed into a page. The reduction depends on whether your identity provider enforces passkeys or only offers them, and on whether password fallback remains enabled. Confirm the identity provider policy, the fallback rules and your multi-factor settings in Rocket.Chat before you describe the change to security stakeholders as a risk reduction.
How DeployOpen scopes and delivers a Rocket.Chat sign-in change
DeployOpen treats the move to the modern OAuth flow with PKCE and system-browser SAML sign-in as a change to your identity configuration, not only a settings toggle. We scope it against your Rocket.Chat version, your identity provider and the client versions your users run, then build, test and document it inside infrastructure you control.
How we scope
- Confirm your current Rocket.Chat version and whether it is on a supported line before any sign-in change is planned.
- Inventory identity providers, SAML or OAuth configurations and the mobile and desktop client versions in use.
- Record the written scope, deliverables and timeline in a fixed-scope agreement before work starts, with a quote following from it.
How we build
- Enable the Accounts_OAuth_Use_Modern_Flow setting in a staging instance that mirrors production configuration.
- Test SAML sign-in in the system browser on mobile and desktop, including passkey and security key prompts at the identity provider.
- Check user provisioning, username mapping and logout behavior against your identity provider settings before any production change.
How we hand over
- Deliver written configuration records, the rollback steps and a test script your administrators can rerun after future upgrades.
- Document which client versions and Rocket.Chat versions were verified, and which settings your team must keep in sync.
- Walk your administrators and security team through the sign-in flow, the evidence produced and the open items to confirm.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for teams that want help after go-live.
- Retest the sign-in flow when Rocket.Chat releases, identity provider changes or client updates affect the setup.
- Ask any support provider to confirm how they handle upgrades on the version lines Rocket.Chat still supports.

