Vaultwarden SSO with Authentik (OIDC)

Use Vaultwarden OIDC to authenticate; a master password is still required to decrypt the vault.

Last updated

On this page (5)

Vaultwarden · Authentik · OIDC

Before you start

  • Self-hosted Vaultwarden release supporting OIDC SSO and deployment admin access.
  • authentik admin, trusted user email verification, and compatible clients.

Configure sign-in

  1. Create a confidential authentik OAuth2/OpenID Connect provider, with signing key, strict redirect https://<vaultwarden>/identity/connect/oidc-signin, access token lifetime over five minutes, and offline_access scope mapping. Use the documented custom email scope in place of the default only for accounts whose email ownership is assured; Vaultwarden requires a verified email under the strict setting.
  2. Set DOMAIN to the external Vaultwarden URL, enable SSO_ENABLED, and set SSO_AUTHORITY=https://<authentik>/application/o/<slug>/, SSO_CLIENT_ID and SSO_CLIENT_SECRET. Set SSO_SCOPES=email profile offline_access; keep SSO_ALLOW_UNKNOWN_EMAIL_VERIFICATION=false and SSO_ONLY=false for pilot testing.
  3. Restart Vaultwarden. Set SSO_SIGNUPS_MATCH_EMAIL only if intentionally linking existing accounts by trusted, unique email.

Verify the result

  • Confirm Vaultwarden can reach the authority discovery document and a pilot can use single sign-on.
  • Verify the correct account is selected and the master password is still required to unlock the vault.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy Vaultwarden with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.