Skip to content

triauth for VaultwardenOIDC

Let your team open the password vault with one approval on their own device, with their master password as the second key.

  • Passwords and secrets
  • Open source
Sign-in through
OpenID Connect bridge
Available in
Vaultwarden 1.35 and newer
Set up in
Environment variables

About Vaultwarden

Vaultwarden is a self-hosted password manager server that works with the official Bitwarden apps and browser extensions. Teams use it to store and share logins on a server they run themselves. It is a community project and is not associated with Bitwarden, Inc.

Connect Vaultwarden to triauth

Vaultwarden signs people in through the triauth OpenID Connect bridge. Once connected, people choose single sign-on in the web vault or in a Bitwarden app, type their username, and approve on their own device. Their master password stays, since it is the key that keeps the vault encrypted, but the account password goes away. When someone leaves, removing their identity records at your domain ends their sign-in to the vault as well.

How it works

  1. Open oidc.triauth.org and enter your domain. Paste Vaultwarden's redirect address, https://vault.example.com/identity/connect/oidc-signin with your own Vaultwarden address in place of vault.example.com, and click Connect app. The bridge gives you a client ID and a client secret.

  2. Add the settings below to Vaultwarden's environment, for example in its docker-compose.yml, and restart it. Replace example.com with your domain and the two placeholders with the client ID and the client secret from the bridge.

    ini
    SSO_ENABLED=true
    SSO_AUTHORITY=https://oidc.triauth.org/example.com
    SSO_CLIENT_ID=<client ID from the bridge>
    SSO_CLIENT_SECRET=<client secret from the bridge>
    SSO_SCOPES=email profile offline_access
  3. Open the web vault or a Bitwarden app, choose to log in with single sign-on, and follow the prompts.

Checkpoint

The single sign-on option opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve. Back in the vault, they unlock it with their master password.

Good to know

  • Everyone with an identity at your domain can create a vault the first time they sign in, and people who already have one under the same email address are connected to it. To let only one team in, limit the app to a group when you connect it.
  • The master password stays. It encrypts the vault and is never known to the bridge or to triauth.
  • The account name shown in the apps is the person's identifier.

For the person who connects the app

SettingValue
Redirect address<DOMAIN>/identity/connect/oidc-signin, built from Vaultwarden's DOMAIN setting
Where in Vaultwardenenvironment variables, or the same keys in its config file
IssuerSSO_AUTHORITY must equal https://oidc.triauth.org/<your domain> exactly, with no trailing slash
Sessionsoffline_access in SSO_SCOPES lets the Bitwarden apps renew the sign-in through the bridge whenever their token expires. So a session follows the identity, and a failed renewal, also one during a bridge outage, signs the apps out. SSO_CLIENT_CACHE_EXPIRATION=3600 keeps Vaultwarden from fetching the bridge's discovery document at every renewal
PasswordsSSO_ONLY=true turns off sign-in with the account password once everyone is over

Vaultwarden keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Vaultwarden's OpenID Connect guide explains every setting, including the browser quirks of the desktop apps.

Next steps

All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.