Manage authentication and SSO
Prepare instance secrets and the OIDC provider, then create, test, and apply the connection from the Administration → Identity & SSO screen.
In brief
Brume combines password authentication with one OIDC connection per organization in the Enterprise edition. This page runs from the instance side (secrets, OIDC client, network flows) through to the Identity & SSO screen, where the connection is saved, tested, and made mandatory.
Prepare instance secrets
Generate and retain JWT_SECRET. This key signs session tokens. Rotating it invalidates every active session.
Retain APP_ENCRYPTION_KEY. Brume uses this key to encrypt the OIDC client secret stored in the database. After a rotation, unreadable secrets must be entered again.
Configure authentication emails. Set RESEND_API_KEY if the instance must send invitations and password reset codes. The configuration variable reference lists formats and the other instance secrets.
Register Brume with the OIDC provider
Create a confidential Web OIDC client that uses the Authorization Code flow. Brume accepts any provider that exposes a standard OIDC discovery document.
| Provider | Common issuer |
|---|---|
| Google Workspace | https://accounts.google.com |
| Microsoft Entra ID | https://login.microsoftonline.com/<tenant-id>/v2.0 |
| Okta | https://<your-domain>.okta.com |
| Keycloak | https://<host>/realms/<realm> |
Register this exact redirect URI with the provider:
https://<tenant-domain>/api/auth/sso/callbackCreate the client with at least the openid email profile scopes, then record its Client ID and client secret. The provider must return a verified email for Brume to accept the sign-in.
Allow OIDC traffic
Outside local development, the public issuer uses HTTPS and must resolve to a public address. Allow the backend to reach the provider's discovery document, token endpoints, and signing keys.
For split-horizon DNS, add the provider's exact internal hostname to BRUME_SSO_INTERNAL_HOST_ALLOWLIST. An internal URL can then be entered for the backend while browsers retain the public issuer. Without this operator allowlist, Brume rejects the internal URL.
Create and validate the connection
Access: Referent. The rest happens in the application. The screen requires the CAN_MANAGE_SSO permission, granted by default to the organization Administrator role.
Gather the public issuer, the optional internal URL, the Client ID, the client secret, and the scopes prepared above. An organization offers one active SSO connection at a time.
Open Administration → Identity & SSO. The configuration screen is available with the Enterprise sso entitlement and the SSO management permission.
Enter the provider settings.
| Field | Expected value |
|---|---|
| Display name | Label of the button offered on the sign-in screen. |
| Issuer URL | Exact issuer from the OIDC discovery document. |
| Internal issuer URL | Optional, only when the operator has prepared split-horizon access. |
| Client ID and client secret | Credentials of the OIDC client created for Brume. |
| Scopes | At least openid email profile. |
The client secret is encrypted at rest and is no longer displayed after it is saved.
Set account creation. Enable Automatically create new accounts for JIT. Restrict allowed domains if needed; an empty list applies no restriction. The provider must mark the email as verified. Without JIT, the account must already exist.
Save, then test. Use Save, then Test connection. The test validates access to the issuer and its signing keys. A change to the issuer, Client ID, scopes, or secret requires another test.
A connection appears to members only after it is enabled and validated.
Require SSO for members
First complete a sign-in from the sign-in screen with a member account. Then enable Require SSO for members and save.
Members can no longer use their password for this organization. Administrators retain password sign-in as a recovery path. If the SSO entitlement is no longer active, Brume stops enforcing this requirement.
After sign-in: what Brume does not synchronize
SSO governs the entry point, not the life of the account afterwards. Brume implements neither SCIM nor backchannel logout: nothing flows back from the provider to Brume between two sign-ins. Three consequences the administrator handles by hand.
Deactivating someone in the IdP does not remove them from the organization. They can no longer open a new session, but their Brume account and membership remain, and their current session stays valid — a session token lives for 30 days. What cuts access immediately is removing the member from Administration → Members: the membership check runs on every request. Disabling the SSO connection revokes, on its side, every session it issued, from the next request onwards.
JIT-created accounts have no password. They are created with the Member role and can only sign in through that SSO connection. Disabling it therefore removes their access with no further action — while leaving their accounts and data in place.
Name and email are only synchronized at creation. A later sign-in does not rewrite the Brume profile: a name or address change at the provider is carried over manually. Nor is the role ever derived from IdP groups — roles are managed in Brume, as described in the permission model.
Resolve a connection failure
| Symptom | Check |
|---|---|
| Issuer rejected | Use the exact issuer advertised by the discovery document. |
| Provider unreachable | Check HTTPS, public DNS resolution, and, for split-horizon DNS, the internal URL allowed by the operator. |
| Sign-in refused after the IdP | Check that the email is marked as verified and belongs to an allowed domain. |
| Connection broken after a rotation | Enter the client secret again, save, and run the test. |
| Tokens intermittently rejected | Resynchronize the instance clock with the provider's. |