SSO sign-in and SCIM provisioning #
Available Administrators onlyEnterprise sign-in is configured in Settings → Integrations → SSO sign-in. RiskPilot supports OIDC and SAML 2.0, roles derived from identity-provider groups, and SCIM 2.0 provisioning. Permissions remain RiskPilot's: the identity provider authenticates, it does not replace RBAC.
OIDC SSO #
Enter the provider, the name shown on the sign-in screen, the issuer, the client ID and the client secret. The secret is encrypted and never returned by the API; when editing, leave it empty to keep it. Changing the issuer or client ID requires a new secret.
Register https://<riskpilot-domain>/api/auth/sso/callback with the provider. APP_URL must match the public HTTPS domain. Confidential clients using client_secret_post or client_secret_basic, and RS256 signatures, are supported.
| Provider | Configuration |
|---|---|
| Microsoft Entra ID | single-tenant Web app, issuer https://login.microsoftonline.com/<tenant-UUID>/v2.0, link the oid |
| Google Workspace | Web OAuth client, issuer https://accounts.google.com, link the sub, optional domain checked on hd |
| Keycloak | confidential client, Authorization Code, PKCE S256, RS256, HTTPS realm issuer |
| Authentik | OAuth2/OIDC provider, RS256, per-application issuer mode (global mode is not supported) |
| Other OIDC | HTTPS issuer declared in OIDC_DIAGNOSTIC_ISSUERS, endpoints on the same host and port |
Link each existing account to its stable provider identifier: an email address is not enough and no automatic matching is performed. At least one linked account and a secret are required to enable SSO. Keep an administrator able to sign in with a password to handle a provider outage.
The flow checks the browser-bound state, nonce, PKCE, JWKS signature, issuer, audience and validity dates. States and tickets expire after five minutes and are single-use. RiskPilot MFA is still required when enabled; a ticket accepts at most five wrong MFA codes.
Voluntary sign-out ends the RiskPilot session and then redirects to the provider's end_session_endpoint when one is advertised; register https://<riskpilot-domain>/login as the post-logout URL.
SAML 2.0 SSO #
Pick the SAML 2.0 protocol (Web Browser SSO: HTTP-Redirect request, HTTP-POST response).
- Enter the provider
entityID, the HTTPS sign-in address, the public X.509 signing certificate (PEM), account links and, optionally, the groups attribute. - Copy the addresses shown after saving to the provider: ACS
https://<riskpilot-domain>/api/auth/sso/saml/<id>/acsand metadatahttps://<riskpilot-domain>/api/auth/sso/saml/<id>/metadata. - At the provider, sign the assertion or response (SHA-256 or better) and provide a stable NameID.
Safeguards: strict signature validation, SHA-1 rejected, unsolicited responses rejected, each request consumed once (replay protection), recipient, audience, issuer and validity windows checked. Single logout (SLO) is supported. Require encrypted assertions generates an RSA 2048 pair (private key encrypted at rest, public certificate in the metadata); an unencrypted assertion is then rejected.
Roles from groups #
Provide the groups claim or attribute (groups for Authentik, realm_access.roles for Keycloak, roles for Entra) and the group=ROLE_… mappings. On each successful sign-in, after MFA, the risk, action, audit and read roles are replaced by those of the groups present. If the claim is missing, roles are unchanged. Administration roles can never be granted this way.
SCIM 2.0 provisioning #
Create a service key with the scim:write scope, then configure https://<riskpilot-domain>/api/scim/v2 and the Bearer token at the provider.
- Users: create, read,
userName eqfilter, update names andactive, deactivate; linked to the SSO connection byexternalId. - Groups: with both
scim:writeandscim:groups, three fixed groups (ROLE_RISK_MANAGER,ROLE_ACTION_OWNER,ROLE_AUDITOR) grant or remove the matching role. - Safeguards: created accounts only get the reader role; email is never changed; deactivation deletes nothing and revokes sessions; the last active administrator cannot be deactivated; a locked account stays locked; SCIM writes are recorded in the sealed audit log.
Acceptance testing and limits #
SAML and SCIM were replayed on November 21, 2026 against Keycloak 26 (repository scripts scripts/recette-saml/, 10 of 10 checks for encryption and single logout). OIDC against a real provider and Authentik acceptance testing are still to be done: they need a public HTTPS issuer. A successful discovery alone does not prove a real sign-in.