Vendor configuration recipe; review against your vendor version. This page is not evidence of fresh external interoperability. Release verification scope.
Integrations · OIDC
Rocket.Chat SSO
Configure Rocket.Chat Community or Enterprise to authenticate via Clavex using the built-in Custom OAuth provider. Covers username, email, and avatar synchronisation from Clavex claims.
Prerequisites
- Rocket.Chat ≥ 3.0 (Community or Enterprise)
- Rocket.Chat admin account
- Clavex at
https://id.acme.eu, org slugacme
Step 1 — Register OIDC Client in Clavex
Register in the organization console. Create the matching OIDC application or downstream SAML application using its actual supported configuration. Copy the exact callback and required client credentials into the vendor configuration below. The management API uses an organization ID and typed request fields; follow the current OIDC guide and release API schema, rather than the obsolete client_name/scopes recipe. Keep credentials server-side.
Step 2 — Add Custom OAuth Provider in Rocket.Chat
- Go to Admin → Settings → OAuth
- Click Add custom OAuth and name it
clavex - Configure the following settings:
Setting Value Enable TrueURL https://id.acme.eu/acmeToken path /tokenToken sent via HeaderIdentity token sent via HeaderIdentity path /userinfoAuthorize path /authorizeScope openid profile emailParam name for access token access_tokenID rocketchatSecret cs_xxxxxxxxxxxxxxxxLogin style RedirectButton text Sign in with ClavexButton text color #FFFFFFButton color #1D9E75
Step 3 — Configure Field Mapping
Still in the Clavex OAuth settings panel, expand Field map:
{
"name": "name",
"email": "email",
"username": "preferred_username",
"avatar": "picture"
}
Also enable:
- Merge users — links existing accounts with same email
- Show button on login page
Step 4 — Test
Navigate to https://chat.acme.eu and you should see a Sign in with Clavex button on the login screen.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Button not shown on login page | OAuth provider disabled or show button setting off | Enable Show button on login page in the OAuth provider settings |
error_uri_mismatch |
Redirect URI wrong | Verify Clavex has https://chat.acme.eu/_oauth/clavex in redirect_uris |
| Username taken error on first login | Same username exists as local user | Enable Merge users setting or delete/rename the conflicting local account |
| Avatar not syncing | picture claim not present |
Ensure Clavex user has a profile picture; picture URL must be publicly accessible |
| Login loop / state error | Cookie domain mismatch | Ensure ROOT_URL in Rocket.Chat matches the exact domain with protocol |