Editions and Enterprise
Single sign-on
Users sign in with your identity provider's button. BastionOS links them by the provider's identifier, maps their groups, and keeps its own sessions and audit.
Enterprise Basic and above. Compare editions
Before you start#
Single sign-on needs the console's public address, BASTION_PUBLIC_URL (set by the installer from the bastion's address). The provider redirects to it, so it must be the address users open, over HTTPS.
OpenID Connect#
In Console → Identities → Identity providers, create an OpenID Connect provider:
| Field | Example |
|---|---|
| Issuer | https://login.microsoftonline.com/<tenant>/v2.0, https://sso.example.com/realms/corp |
| Client ID and secret | from the application registered at the provider; the secret goes to OpenBao |
| Redirect URI to register at the provider | https://bastion.example.com/api/v1/auth/sso/callback |
| Groups claim | the claim that carries the user's groups, such as groups |
| Create users | create a user at their first sign-in, or only sign in users who already exist |
| Second factor | provider: the provider's sign-in counts as the second factor; local: BastionOS asks for its own |
BastionOS uses the authorization code flow with PKCE, checks the state, the nonce, the ID token's signature, issuer, audience and expiry, and fetches the provider's keys again when they rotate.
SAML 2.0#
Create a SAML provider and paste the identity provider's metadata (several signing certificates are accepted, for rotation). Give the provider BastionOS's metadata, published at:
https://bastion.example.com/api/v1/auth/sso/saml/<provider>/metadataThe assertion consumer service is https://bastion.example.com/api/v1/auth/sso/saml/acs. Sign-in starts at BastionOS; responses are checked for signature, issuer, audience, destination, validity and replay, and SHA-1 is refused. A transient NameID is refused: use a persistent identifier. Sign-in started from the provider's portal, single logout and encrypted assertions are not supported.
Users and groups#
- Users are linked by
(provider, subject)or(provider, NameID), never by user name or e-mail. - Users of a provider have no local password.
- Group mappings turn the provider's groups into BastionOS groups. These memberships are kept apart from manual and directory ones, and follow each sign-in.
- With SCIM, the provider can also create and disable users before they ever sign in: see SCIM and RADIUS.
When the license ends#
Single sign-on stops: the provider's button disappears. Local accounts and directory sign-in still work, so an administrator can still sign in and give users a local password.