Skip to content

OpenID Connect (OIDC) authorization

Authenticates users through an external identity provider (IdP). MFA and passkeys remain with the IdP; Bifröst's environment determines where the session runs.

Choose a flow

Authorization Code Device Authorization
Bifröst HTTP connection Required, also for SSH Not required for SSH
User experience Familiar browser redirect; often simpler SSO Separate verification page and code; potentially less convenient
IdP compatibility Broad OIDC support Requires explicit Device Authorization support
Login protection PKCE S256, browser binding and explicit SSH approval Device-code verification and approval at the IdP

Authorization Code can offer security advantages with a suitable setup; neither flow is automatically safer. WebUI access requires HTTPS with either flow.

For a complete setup, see the OIDC login guide.

Examples

Authorization Code

Enable the HTTP connection and register its /login/callback URL at the IdP.

1
2
3
4
5
type: oidcAuthorizationCode
issuer: https://idp.example.org/realms/company
clientId: bifroest
clientSecret: YOUR_CLIENT_SECRET
scopes: [ openid, profile, offline_access ]

Authorization Code properties and examples

Device Authorization

Enable Device Authorization for the IdP client. SSH does not need a Bifröst HTTP listener.

1
2
3
4
5
type: oidcDeviceAuth
issuer: https://idp.example.org/realms/company
clientId: bifroest
clientSecret: YOUR_CLIENT_SECRET
scopes: [ openid, profile, offline_access ]

Device Authorization properties and examples

Both examples use the default refresh checks. The IdP must issue a refresh token; use the scopes and client settings required by your provider.