Admin ConsoleSingle Sign-OnSSO Guides

Okta SAML

This article contains Okta-specific help for configuring Login with SSO via SAML 2.0. For help configuring login with SSO for another IdP, refer to SAML 2.0 Configuration.

Configuration involves working simultaneously within the Bitwarden web app and the Okta Admin Portal. As you proceed, we recommend having both readily available and completing steps in the order they are documented.

tip

Already an SSO expert? Skip the instructions in this article and download screenshots of sample configurations to compare against your own.

Download Sample

Open SSO in the web app

Log in to the Bitwarden web app and open the Admin Console using the product switcher:

Product switcher
Product switcher

Open your organization's SettingsSingle sign-on screen:

SAML 2.0 configuration
SAML 2.0 configuration

If you haven't already, create a unique SSO identifier for your organization and select SAML from the the Type dropdown. Keep this screen open for easy reference.

You can uncheck Set a unique SP entity ID. If you do, this will remove your organization ID from your SP entity ID value. We recommend leaving this setting checked in almost all cases.

tip

There are alternative Member decryption options. Learn how to get started using SSO with trusted devices or Key Connector.

Create an Okta application

Next, create a new Okta application:

  1. From the Okta Admin Portal, go to ApplicationsApplications.

  2. Select Create App Integration.

  3. Select SAML 2.0:

    Create new app for SAML 2.0
    Create new app for SAML 2.0

  4. Select Next, which will open the app's general settings.

  5. Enter a unique, Bitwarden-specific name in App name.

  6. Select Next.

Configure SAML

This will open the Configure SAML page. Configure the following fields:

Advanced settings

Next, select Show Advanced Settings:

Show Advanced Settings
Show Advanced Settings

Set up these fields:

Once configured, select Next and then Finish.

Attribute statements

To define attribute statements in your new Bitwarden app:

  1. Go to the Sign On tab.

  2. Within the Attribute statements section, select Show legacy configuration.

  3. Select Edit:

    Create attribute statements
    Create attribute statements

  4. By default, one line will appear below to build an attribute statement. Select Add Another twice so you can build these three SP → IdP attribute mappings. Then select Save:

Get IdP values

While still on the Sign On tab, select View Setup Instructions on the right:

View SAML setup instructions
View SAML setup instructions

Leave this page open for next steps, or copy the Identity Provider Single Sign-On URL and Identity Provider issuer and download the X.509 Certificate:

IdP values
IdP values

Assignments

Return to your Bitwarden app configuration in Okta and go to Assignments. Select Assign:

Assign to People or Groups
Assign to People or Groups

You can assign access to the application on a user-by-user basis using the Assign to People option or in-bulk using the Assign to Groups option.

Back to the web app

At this point, you've configured everything needed within the Okta Admin Portal. Open the Bitwarden web app and go to SettingsSingle sign-on to complete your SSO setup.

SAML service provider configuration

The first section is SAML service provider configuration and determine the format of SAML requests. Configure the following fields according to the choices selected in the Okta Admin Portal during app creation:

When you're done with the service provider configuration, select Save.

SAML identity provider configuration

The second section on this page is SAML identity provider configuration and determines the format to expect for SAML responses. Refer back to the Okta Admin Portal to retrieve some of these values:

note

When completing the X509 certificate, take note of the expiration date. Certificates will need to be renewed to prevent any disruptions in service to SSO end-users. If a certificate expires, Admin and Owner accounts can still log in with their email address and master password.

When you're done with the identity provider configuration, select Save.

tip

You can require users to log in with SSO by activating the single sign-on authentication policy.

Test the configuration

Once your configuration is complete, test it. Go to https://vault.bitwarden.com, enter your email address, and select Use single sign-on:

Log in options screen
Log in options screen

Enter the configured organization identifier and select Continue. If your implementation is successfully configured, you will be redirected to the Okta login screen:

Log in with Okta
Log in with Okta

After you authenticate with your Okta credentials, enter your Bitwarden master password to decrypt your vault!

tip

Bitwarden does not support unsolicited responses, so initiating login from your IdP will result in an error. The SSO login flow must be initiated from Bitwarden. Okta administrators can create an Okta Bookmark App that will link directly to the Bitwarden web vault login page.

  1. As an admin, navigate to the Applications drop down located on the main navigation bar and select Applications.

  2. Click Browse App Catalog.

  3. Search for Bookmark App and click Add Integration.

  4. Add the following settings to the application:

    1. Give the application a name such as Bitwarden Login.

    2. In the URL field, provide the URL to your Bitwarden client such as https://vault.bitwarden.com/#/login or your-self-hostedURL.com.

  5. Select Done and return to the applications dashboard and edit the newly created app.

  6. Assign people and groups to the application. You may also assign a logo to the application for end user recognition. The Bitwarden logo can be obtained here.

Once this process has been completed, assigned people and groups will have a Bitwarden bookmark application on their Okta dashboard that will link them directly to the Bitwarden web vault login page.