• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Company · Blog · Newsletter · Events · Partner Program

Downloads Support
  • English
    • Deutsch
    • Polski
Login
Rublon

Rublon

Secure Remote Access

  • Product
    • Regulatory Compliance
    • Use Cases
    • Rublon MFA Reviews
    • Deployment Model
    • What is MFA?
    • Authentication Methods
    • Rublon Authenticator
    • Rublon App Shield
    • Rublon Identity Bridge
    • Rublon Endpoint Shield
    • Remembered Devices
    • Logs
    • Single Sign-On
    • Access Policies
    • Directory Sync
  • Solutions
    • MFA for Remote Desktop
    • MFA for Remote Access Software
    • MFA for Windows Logon
    • MFA for Linux
    • MFA for macOS
    • MFA for On-Premise Active Directory
    • MFA for LDAP
    • MFA for RADIUS
    • MFA for SAML
    • MFA for RemoteApp
    • MFA for Workgroup Accounts
    • MFA for Entra ID
    • MFA for Windows Server Core
  • Customers
  • Industries
    • Financial Services
    • Investment Funds
    • Retail
    • E-Commerce
    • Technology
    • Healthcare
    • Legal
    • Education
    • Government
    • Utilities
    • Manufacturing
  • Pricing
  • Docs
Contact us Free Trial

Multi-Factor Authentication (2FA/MFA) for Vaultwarden

November 30, 2026 By Rublon Authors

Overview of MFA for Vaultwarden

Rublon Multi-Factor Authentication (MFA) for Vaultwarden adds a second authentication step to single sign-on (SSO) using OpenID Connect (OIDC) and Rublon Identity Bridge. Users sign in with their on-premises Active Directory credentials and complete multi-factor authentication before returning to Vaultwarden.

This integration was tested with Vaultwarden Server 1.37.5 and Web Vault 2026.10.1. This documentation covers logging in through Web Vault.

Note

SSO does not replace the Vaultwarden master password. The Active Directory password authenticates the user through Rublon Identity Bridge, while the master password unlocks the vault.

Supported Authentication Methods

Authentication MethodSupportedComments
Mobile Push✔N/A
FIDO✔N/A
Passcode✔N/A
SMS Passcode✔N/A
SMS Link✔N/A
Phone Call✔N/A
QR Code✔N/A
Email Link✔N/A
YubiKey OTP✔N/A
RFID–N/A

Before You Start Configuring MFA for Vaultwarden

Before configuring Rublon MFA for Vaultwarden:

  • Ensure you have prepared all required components.
  • Create an application in the Rublon Admin Console.
  • Install the Rublon Authenticator mobile app.

Required Components

  1. User Identity Provider (IdP) – You need an Active Directory domain controller configured for LDAPS.
  2. Rublon Identity Bridge – A properly installed Rublon Identity Bridge instance with OpenID Connect support.
  3. Vaultwarden – A properly installed and configured Vaultwarden deployment with OpenID Connect SSO support.

Create an Application in the Rublon Admin Console

Note

The application in the Rublon Admin Console represents your Rublon Identity Bridge instance. If an application has already been created for this instance, use its System Token and Secret Key and skip creating a new application. Vaultwarden is registered separately as an OIDC client in Rublon Identity Bridge.

  1. Sign up for the Rublon Admin Console. Here’s how.
  2. In the Rublon Admin Console, go to the Applications tab and click Add Application.
  3. Enter a name for your application (e.g., Rublon Identity Bridge) and then set the type to Other.
  4. Click Save to add the new application in the Rublon Admin Console.
  5. Copy the values of the System Token and Secret Key of the newly created application. You will need them later.

Install Rublon Authenticator

Some end-users may use the Rublon Authenticator mobile app. So, as a person configuring MFA for Vaultwarden, we highly recommend you install the Rublon Authenticator mobile app, too. Thanks to that, you will be able to test MFA for Vaultwarden via Mobile Push.

Download the Rublon Authenticator for:

  • Android
  • iOS
  • HarmonyOS

Configuring Multi-Factor Authentication (MFA) for Vaultwarden

Follow the steps below to configure Rublon MFA for Vaultwarden.

All addresses containing example.com are examples. Replace them with the addresses used in your deployment.

Pre-Configuration Steps

  1. Ensure you have administrative access to the Rublon Identity Bridge configuration file and administration panel, and permission to modify the Vaultwarden server configuration.
  2. Ensure that users’ browsers and the Vaultwarden server trust the HTTPS certificate presented by Rublon Identity Bridge. Rublon Identity Bridge must also trust the certificate presented by the Active Directory domain controller.
  3. Prepare an Active Directory test account with an enrolled Rublon MFA authenticator.
  4. For the initial test, use an Active Directory account whose UPN is not already used by an existing local Vaultwarden account. Ensure that Vaultwarden allows this account to register through SSO.

Initial Rublon Identity Bridge Configuration

1. Open the Rublon Identity Bridge config.toml file and enter the System Token and Secret Key copied from the Rublon Admin Console:

rublon_api_token = "YOUR_SYSTEM_TOKEN"
rublon_api_secret = "YOUR_SECRET_KEY"
rublon_api_url = "https://core.rublon.net"
mfa_bypass_enabled = false

2. If OpenID Connect is already configured, continue to Configure Active Directory in Rublon Identity Bridge without changing the existing issuer, signing key, or HMAC secrets. Otherwise, generate an RSA signing key in a private directory:

umask 077
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 \
  -out oidc-signing-key.pem

3. Run the following command twice to generate two separate secrets:

openssl rand -base64 32 | tr '+/' '-_' | tr -d '='

4. Configure the following settings in config.toml. Use the first generated secret for subject_hmac_secret and the second for artifact_routing_hmac_secret:

issuer = "https://rib.example.com"
oidc_signing_key_path = "/absolute/path/to/oidc-signing-key.pem"
oidc_key_id = "rib-oidc-1"
subject_hmac_secret = "YOUR_FIRST_GENERATED_SECRET"
artifact_routing_hmac_secret = "YOUR_SECOND_GENERATED_SECRET"

Set issuer to the external HTTPS URL used by both users and Vaultwarden. When Nginx provides HTTPS access, use its external URL, without the internal Identity Bridge port 8443.

Set oidc_signing_key_path to the absolute path inside the Rublon Identity Bridge container. Mount the generated key at that path as a read-only file and ensure that the service can read it.

Note

If OpenID Connect is already configured, keep the existing issuer, signing key, and HMAC secrets. Update existing configuration entries instead of adding duplicates.

Configure Active Directory in Rublon Identity Bridge

Active Directory authentication is configured at the Rublon Identity Bridge instance level, separately from the OIDC client settings.

If your instance already verifies user credentials against the required Active Directory domain over LDAPS, skip steps 1 to 3 below and continue with step 4.

1. Obtain the Active Directory CA certificate in PEM format from your administrator and save it as ./pki/ad-ca.pem in the Docker Compose project directory. Add the following mount to the existing volumes list of the Rublon Identity Bridge service:

- ./pki/ad-ca.pem:/etc/rublon-identity-bridge/ldaps-ca/ca.pem:ro

2. Open the Rublon Identity Bridge config.toml file and configure the following settings:

password_verifier = "active_directory"
username_format = "email"
active_directory.transport = "ldaps"
active_directory.urls = ["REPLACE_WITH_YOUR_DOMAIN_CONTROLLER_LDAPS_URL"]
active_directory.upn_suffix = "example.com"
active_directory.ca_certificate_paths = ["/etc/rublon-identity-bridge/ldaps-ca/ca.pem"]

3. Replace the example values with your deployment settings.

SettingDescription
password_verifierSet to "active_directory" to verify passwords against Active Directory.
username_formatSet to "email" for the username format used in this configuration, such as tester@example.com.
active_directory.transportSet to "ldaps" to use an encrypted connection to the domain controller.
active_directory.urlsBuild the URL by joining ldaps, ://, your domain controller’s hostname (for example, dc.example.com), and :636, without spaces. Enter the resulting URL in place of REPLACE_WITH_YOUR_DOMAIN_CONTROLLER_LDAPS_URL in the configuration example.
active_directory.upn_suffixEnter the part of the user’s Active Directory login after @. This may differ from the domain controller’s DNS domain.
active_directory.ca_certificate_pathsEnter the path to the CA certificate file required to validate the domain controller’s certificate. The file must be accessible to the Rublon Identity Bridge service.

4. Save config.toml. From the Docker Compose project directory, recreate the Rublon Identity Bridge container:

docker compose up -d --no-deps --force-recreate rublon-identity-bridge

If your Compose service has a different name, replace rublon-identity-bridge with that name.

Important

These settings change how the Rublon Identity Bridge instance verifies passwords. They are not limited to the Vaultwarden client.

If password_verifier or username_format already exists in the configuration file, update the existing setting instead of adding a duplicate.

Use the domain controller’s full DNS name matching its certificate, rather than its IP address. The certificate path in active_directory.ca_certificate_paths must match the mount path inside the container.

Verify OpenID Connect Discovery

1. Obtain the HTTPS base URL of your Rublon Identity Bridge instance.

2. Append /.well-known/openid-configuration to the base URL and open the resulting address in a browser. For example:

https://rib.example.com/.well-known/openid-configuration

3. Verify that the endpoint returns a JSON document and that its issuer value matches the value configured in config.toml.

4. Find the issuer field and copy its exact value. You will use it as SSO_AUTHORITY in Vaultwarden.

Note

SSO_AUTHORITY must exactly match the discovery document’s issuer value, including a trailing slash if present. Do not append /.well-known/openid-configuration to SSO_AUTHORITY.

If you cannot access the discovery document, check the Rublon Identity Bridge URL, HTTPS configuration, and whether OpenID Connect is enabled.

Add Vaultwarden in Rublon Identity Bridge

1. Log in to the Rublon Identity Bridge administration panel at /admin as a superadmin and open OAuth Clients.

2. Generate a Client Secret:

openssl rand -hex 32

3. Fill in the form. Refer to the following table.

FieldValue
Client IDvaultwarden
Client NameVaultwarden
Client SecretEnter the generated secret. You will use the same value for SSO_CLIENT_SECRET in Vaultwarden.
Redirect URIshttps://vaultwarden.example.com/identity/connect/oidc-signin. Replace the base URL with the DOMAIN value configured in Vaultwarden.
Public clientLeave unchecked.
Allow passwordless loginLeave unchecked.
UnrestrictedLeave unchecked.
Allowed Scopesopenid, email, profile
Allowed ResourcesLeave empty.
Default ResourcesLeave empty.
Allow tokens with no audience (no default resources)Check.

4. Click Add Client.

5. Copy the Client ID and Client Secret. You will need them when configuring Vaultwarden.

Note

For this configuration, allow only the openid, email, and profile scopes. Do not add offline_access. Vaultwarden is configured to manage user sessions using SSO_AUTH_ONLY_NOT_SESSION=true.

Configure SSO in Vaultwarden

1. Configure the existing vaultwarden service in Docker Compose to load its environment variables from vaultwarden.env:

env_file: ./vaultwarden.env

Define the settings below in vaultwarden.env and remove any duplicate entries from the service’s environment section.

2. Create or update vaultwarden.env in the Docker Compose project directory and add the following settings. Keep this file out of version control.

DOMAIN=https://vaultwarden.example.com
SSO_ENABLED=true
SSO_AUTHORITY=https://rib.example.com
SSO_CLIENT_ID=vaultwarden
SSO_CLIENT_SECRET=REPLACE_WITH_YOUR_OIDC_CLIENT_SECRET
SSO_PKCE=true
SSO_SCOPES=email profile
SSO_AUTH_ONLY_NOT_SESSION=true
SSO_SIGNUPS_MATCH_EMAIL=false
SSO_ALLOW_UNKNOWN_EMAIL_VERIFICATION=false
SSO_ONLY=false

3. Replace the example values as described below.

SettingDescription
DOMAINThe external HTTPS URL of your Vaultwarden deployment. Vaultwarden uses this value to generate its OIDC callback URL.
SSO_ENABLEDSet to true to enable SSO.
SSO_AUTHORITYThe exact issuer value copied from the Rublon Identity Bridge discovery document.
SSO_CLIENT_IDThe Client ID configured in Rublon Identity Bridge.
SSO_CLIENT_SECRETThe Client Secret configured in Rublon Identity Bridge.
SSO_SCOPESSet to "email profile". Vaultwarden includes openid automatically. Do not add offline_access for this configuration.
SSO_PKCESet to true to enable Proof Key for Code Exchange (PKCE).
SSO_AUTH_ONLY_NOT_SESSIONSet to true to use Rublon Identity Bridge for authentication and Vaultwarden for subsequent session management.
SSO_ONLYKeep set to false while testing. Set to true after successful testing if users must authenticate through SSO.
SSO_SIGNUPS_MATCH_EMAILSet to false to disable automatic linking of existing local accounts by email address.
SSO_ALLOW_UNKNOWN_EMAIL_VERIFICATIONKeep set to false to reject an unknown email verification status from the OIDC provider.

Automatic linking of existing accounts is disabled in this configuration. To control registration of new accounts through SSO, review SSO_SIGNUPS_ALLOWED and SIGNUPS_DOMAINS_WHITELIST.

4. If the HTTPS certificate of Rublon Identity Bridge was issued by a private CA, prepare ./pki/rib-ca-bundle.pem containing that CA and any other CA certificates required by your Vaultwarden deployment. Add the following mount to the existing volumes list of the vaultwarden service:

- ./pki/rib-ca-bundle.pem:/etc/ssl/certs/rib-ca-bundle.pem:ro

Add the following setting to vaultwarden.env:

SSL_CERT_FILE=/etc/ssl/certs/rib-ca-bundle.pem

This CA bundle is used for HTTPS connections to Rublon Identity Bridge. It is separate from the Active Directory CA certificate used for LDAPS.

5. Keep the existing /data volume mount and recreate the Vaultwarden container from the Docker Compose project directory:

docker compose up -d --no-deps --force-recreate vaultwarden

If your Compose service has a different name, replace vaultwarden with that name.

Note

With SSO_AUTH_ONLY_NOT_SESSION=true, Vaultwarden manages its own session after authentication. Logging out of Rublon Identity Bridge does not end an active Vaultwarden session.

Trusting the Rublon Identity Bridge certificate in your browser is not sufficient. The Vaultwarden server or container must also trust it.

For additional options, refer to the Vaultwarden OpenID Connect SSO documentation.

Sign in to Vaultwarden with Rublon MFA

This example portrays logging in to Vaultwarden with Rublon Multi-Factor Authentication. We will show you how to log in using Mobile Push.

1. Go to your Vaultwarden web vault.

2. Click Use single sign-on.

3. You will be redirected to the Rublon Identity Bridge login page.

4. Enter your Active Directory username (e.g., tester@example.com) in Username and your password in Password. Click Continue With Rublon MFA. A window will appear with a selection of various authentication methods. Let’s choose Mobile Push.

5. You will be sent a push notification. Tap APPROVE.

A Mobile Push notification used to complete Rublon MFA

6. You will be redirected back to Vaultwarden. Complete the account setup if this is your first login, or enter your master password if prompted to unlock the vault.

7. You will be successfully logged in to Vaultwarden.

Require SSO After Testing

Before requiring SSO, verify that all intended users can log in through Rublon Identity Bridge and unlock their vaults.

To disable logging in with an email address and master password and require SSO, set the following value in vaultwarden.env:

SSO_ONLY=true

Recreate the Vaultwarden container as described in Configure SSO in Vaultwarden.

Troubleshooting MFA for Vaultwarden

Failed to Discover OpenID Provider

If Vaultwarden reports Failed to discover OpenID provider:

1. Verify that SSO_AUTHORITY exactly matches the issuer value in the Rublon Identity Bridge discovery document.

2. Ensure that SSO_AUTHORITY does not include /.well-known/openid-configuration.

3. Verify that the Vaultwarden server or container can resolve the Rublon Identity Bridge hostname and access its discovery endpoint over HTTPS.

4. Verify that Vaultwarden trusts the certificate chain presented by Rublon Identity Bridge.

Keep TLS certificate validation enabled when resolving connection issues.

Active Directory Authentication Fails

If Rublon Identity Bridge rejects the Active Directory credentials:

1. Verify the username and password using the intended test account.

2. Ensure that the username uses the format configured in Rublon Identity Bridge.

3. Check the domain controller URL and UPN suffix in config.toml.

4. Verify that Rublon Identity Bridge can reach the domain controller over LDAPS.

5. Check that the domain controller hostname matches its certificate and that the CA certificate file is accessible to the Rublon Identity Bridge service.

Redirect URI Is Rejected

Compare the Redirect URIs value configured in Rublon Identity Bridge with the callback URL generated from Vaultwarden’s DOMAIN setting.

For this example, the redirect URI is:

https://vaultwarden.example.com/identity/connect/oidc-signin

Ensure that the scheme, hostname, port if applicable, and path match.

Email Address Is Missing or Does Not Match the Expected Account

Verify that the OIDC client allows the email scope and that Vaultwarden requests it.

Rublon Identity Bridge returns the normalized full Active Directory UPN as the email address through /userinfo. It does not read the Active Directory mail attribute.

Automatic linking of existing local Vaultwarden accounts by email address is disabled in this configuration.

Unsupported Scope Error

Verify that neither the OIDC client configuration nor SSO_SCOPES includes offline_access.

Use the following Vaultwarden settings for this configuration:

SSO_SCOPES="email profile"
SSO_AUTH_ONLY_NOT_SESSION=true

Configuration Changes Have No Effect

Check whether settings saved through the Vaultwarden administration interface override the environment variables. Vaultwarden stores these overrides in config.json in its data directory.

Vaultwarden Requests a Master Password After MFA

This is expected behavior. SSO does not replace the Vaultwarden master password. Enter your master password to unlock the vault after logging in with Rublon MFA.

I Have Another Issue

If you encounter any other issues with your Rublon MFA integration, contact Rublon Support.

Filed Under: Documentation

Primary Sidebar

Contents

  • Overview of MFA for Vaultwarden
  • Supported Authentication Methods
  • Before You Start Configuring MFA for Vaultwarden
    • Required Components
    • Create an Application in the Rublon Admin Console
    • Install Rublon Authenticator
  • Configuring Multi-Factor Authentication (MFA) for Vaultwarden
    • Pre-Configuration Steps
    • Initial Rublon Identity Bridge Configuration
      • Configure Active Directory in Rublon Identity Bridge
      • Verify OpenID Connect Discovery
    • Add Vaultwarden in Rublon Identity Bridge
    • Configure SSO in Vaultwarden
  • Sign in to Vaultwarden with Rublon MFA
    • Require SSO After Testing
  • Troubleshooting MFA for Vaultwarden
    • Failed to Discover OpenID Provider
    • Active Directory Authentication Fails
    • Redirect URI Is Rejected
    • Email Address Is Missing or Does Not Match the Expected Account
    • Unsupported Scope Error
    • Configuration Changes Have No Effect
    • Vaultwarden Requests a Master Password After MFA
    • I Have Another Issue

Footer

Product

  • Regulatory Compliance
  • Rublon MFA Reviews
  • Use Cases
  • Deployment Model
  • What is MFA?
  • User Experience
  • Authentication Methods
  • Rublon Authenticator
  • Rublon App Shield
  • Rublon Identity Bridge
  • Rublon Endpoint Shield
  • Remembered Devices
  • Logs
  • Single Sign-On
  • Access Policies
  • Directory Sync

Solutions

  • MFA for Remote Desktop
  • MFA for Windows Logon
  • MFA for Remote Access Software
  • MFA for Linux
  • MFA for macOS
  • MFA for On-Premise Active Directory
  • MFA for LDAP
  • MFA for RADIUS
  • MFA for SAML
  • MFA for RemoteApp
  • MFA for Workgroup Accounts
  • MFA for Entra ID
  • MFA for Windows Server Core

Industries

  • Financial Services
  • Investment Funds
  • Retail
  • E-Commerce
  • Technology
  • Healthcare
  • Legal
  • Education
  • Government
  • Utilities
  • Manufacturing

Documentation

  • 2FA for Windows & RDP
  • 2FA for RDS
  • 2FA for RD Gateway
  • 2FA for RD Web Access
  • 2FA for SSH
  • 2FA for macOS
  • 2FA for OpenVPN
  • 2FA for SonicWall VPN
  • 2FA for Cisco VPN
  • 2FA for Office 365

Support

  • Knowledge Base
  • FAQ
  • System Status

About

  • About Us
  • AI Info
  • Blog
  • Events
  • Careers
  • Co-funded by the European Union
  • Contact Us

  • Facebook
  • GitHub
  • LinkedIn
  • Twitter
  • YouTube

© 2026 Rublon · Imprint · Legal & Privacy · Security