SAML 2.0 Configuration
Step 1: Set an Organization Identifier
Users who authenticate their identity using SSO will be required to enter an Organization Identifier that indicates the Organization (and therefore, the SSO integration) to authenticate against. to set a unique Organization Identifier:
Log in to your Web Vault and open your Organization.
Open the Settings tab and enter a unique Identifier for your Organizations.
Save your changes before exiting this page.
You'll need to share this value with users once the configuration is ready to be used.
Step 2: Enable Login with SSO
Once you have your Organization Identifier, you can proceed to enabling and configuring your integration. To enable Login with SSO:
From the Organization Vault, navigate to the Manage tab and select Single Sign-On from the left-hand menu:
On the Single Sign-On Screen, check the Allow SSO Authentication checkbox.
From the Type dropdown menu, select the SAML 2.0 option. If you intend to use OIDC instead, switch over to the OIDC Configuration Guide.
If you're self-hosting Bitwarden, you can use alternative Member Decryption Options. This feature is disabled by default, so continue with Master Password decryption for now and learn how to get started using Key Connector once your configuration is complete and successfully working.
Step 3: Configuration
From this point on, implementation will vary provider-to-provider. Jump to one of our specific Implementation Guides for help completing the configuration process:
|AD FS||AD FS Implementation Guide|
|Auth0||Auth0 Implementation Guide|
|AWS||AWS Implementation Guide|
|Azure||Azure Implementation Guide|
|Duo||Duo Implementation Guide|
|Google Implementation Guide|
|JumpCloud||JumpCloud Implementation Guide|
|Keycloak||Keycloak Implementation Guide|
|Okta||Okta Implementation Guide|
|OneLogin||OneLogin Implementation Guide|
|PingFederate||PingFederate Implementation Guide|
Configuration Reference Materials
The following sections will define fields configured on the Single Sign-On configuration screen, agnostic of which IdP you're integration with. Fields that must be configured will be marked (Required).
Unless you're comfortable with SAML 2.0, we recommend using one of the above Implementation Guides instead of the following generic material.
The Single Sign-On screen separates configuration into two sections:
SAML Service Provider Configuration will determine the format of SAML requests.
SAML Identity Provider Configuration will determine the format to expect for SAML responses.
Service Provider Configuration
|SP Entity ID||(Automatically generated) The Bitwarden endpoint for authentication requests. For Cloud-hosted customers, this is always
|SAML 2.0 Metadata URL||(Automatically generated) Metadata URL for the Bitwarden endpoint. For Cloud-hosted customers, this is always
|Assertion Consumer Service (ACS) URL||(Automatically generated) Location where the SAML assertion is sent from the IdP. For Cloud-hosted customers, this is always
|Name ID Format||Format Bitwarden will request of the SAML assertion. Options include:
-X.509 Subject Name
-Windows Domain Qualified Name
-Kerberos Principal Name
|Outbound Signing Algorithm||The algorithm Bitwarden will use to sign SAML requests. Options include:
|Signing Behavior||Whether/when SAML requests will be signed. Options include:
-If IdP Wants Authn Requests Signed (default)
|Minimum Incoming Signing Algorithm||Minimum strength of the algorithm that Bitwarden will accept in SAML responses.|
|Want Assertions Signed||Check this checkbox if Bitwarden should expect responses from the IdP to be signed.|
|Validate Certificates||Check this box when using trusted and valid certificates from your IdP through a trusted CA. Self-signed certificates may fail unless proper trust chains are configured within the Bitwarden Login with SSO docker image.|
Identity Provider Configuration
|Entity ID||(Required) Address or URL of your Identity Server or the IdP Entity ID.|
|Binding Type||Method used by the IdP to respond to Bitwarden SAML requests. Options include:
|Single Sign On Service URL||(Required if Entity ID is not a URL) SSO URL issued by your IdP.|
|Single Log Out Service URL||Login with SSO currently does not support SLO. This option is planned for future use, however we strongly recommend pre-configuring this field.|
|X509 Public Certificate||(Required) The X.509 Base-64 encoded certificate body. Do not include the
Extra spaces, carriage returns, and other extraneous characters inside this field will cause certificate validation failure. Copy only the certificate data into this field.
|Outbound Signing Algorithm||The algorithm your IdP will use to sign SAML responses/assertions. Options include:
|Disable Outbound Logout Requests||Login with SSO currently does not support SLO. This option is planned for future use, however we strongly recommend pre-configuring this field.|
|Want Authentication Requests Signed||Check this checkbox if your IdP should expect SAML requests from Bitwarden to be signed.|
SAML Attributes & Claims
An email address is required for account provisioning, which can be passed as any of the attributes or claims in the below table.
A unique user identifier is also highly recommended. If absent, Email will be used in its place to link the user.
Attributes/Claims are listed in order of preference for matching, including Fallbacks where applicable:
|Unique ID||NameID (when not Transient)
|First Name + “ “ + Last Name (see below)|