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.
- 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
Open oidc.triauth.org and enter your domain. Paste Vaultwarden's redirect address,
https://vault.example.com/identity/connect/oidc-signinwith your own Vaultwarden address in place ofvault.example.com, and click Connect app. The bridge gives you a client ID and a client secret.Add the settings below to Vaultwarden's environment, for example in its
docker-compose.yml, and restart it. Replaceexample.comwith your domain and the two placeholders with the client ID and the client secret from the bridge.iniSSO_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_accessOpen 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
| Setting | Value |
|---|---|
| Redirect address | <DOMAIN>/identity/connect/oidc-signin, built from Vaultwarden's DOMAIN setting |
| Where in Vaultwarden | environment variables, or the same keys in its config file |
| Issuer | SSO_AUTHORITY must equal https://oidc.triauth.org/<your domain> exactly, with no trailing slash |
| Sessions | offline_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 |
| Passwords | SSO_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
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your organization an identifier at your domain.
- Read Groups to limit the vault to one team when you connect it.
- Read Vaultwarden's OpenID Connect guide for every setting it offers.
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.