Configure SAML SSO

Enable SAML SSO for your organization.

Cobalt supports single sign-on (SSO) through Security Assertion Markup Language 2.0 (SAML 2.0).

SAML supports federated identity, which allows you to sign in to different domains with a single account. With SAML, when you sign in to Cobalt, our app verifies your identity with the identity provider (IdP) that you configured. As a service provider, Cobalt pulls SAML assertions from your IdP to authenticate your users.

As an Organization Owner, you can set up SAML SSO for your organization. Once you’ve enabled SSO, users need to sign in through the selected IdP and not the Cobalt Sign In page. This affects Organization Owners, Organization Members, and Pentest Team Members.

General Configuration Workflow

Configuration procedures differ for each identity provider. See configuration instructions for some popular IdPs below.

Here’s a general configuration workflow:

  1. Configure SAML SSO on the identity provider side.
    • For each provider, see how parameters map between their platform and Cobalt.
  2. Set up the integration in the Cobalt app:
    • Navigate to the Settings page, and then select Identity & Access.
    • Under SAML 2.0, select Enable.
    • Enter parameter values that you obtained from the identity provider, and select Save.
      • For the IdP Certificate, make sure to include -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----.
    • Save the IdP RelayState value that appears in red.

      Configure SAML SSO in the Cobalt app
  3. Complete the integration in the identity provider system, and test the connection.
    • Test your SAML configuration in an incognito window before signing out of Cobalt. This will prevent any account lockout.

We don’t synchronize user datastores, so make sure that all users:

  • Joined your organization in Cobalt, confirmed their email address, and created a password.
  • Are provisioned within your identity provider with the same email address that they use in Cobalt.

If you have problems setting up SAML SSO, see our troubleshooting tips.

Configuration Instructions for Specific Identity Providers

You can configure SAML SSO with your preferred identity provider. Here are instructions for some popular IdPs:

Azure AD

To configure SAML SSO with Azure Active Directory (Azure AD):

  1. In Azure AD, create an enterprise non-gallery application for Cobalt.
  2. Enable SSO for the application. If available, follow the instructions that you see in the UI.
    • Verify that the single sign-on method for your application is SAML.
    • Under Basic SAML Configuration, enter:
      • Identifier (Entity ID):
      • Reply URL (Assertion Consumer Service URL):
      • Sign on URL: Leave this field blank.
      • Relay State: Leave this field blank now. You’ll need it later.
      • Logout URL: Leave this field blank.
    • Under User Attributes & Claims, add custom attribute mappings to your SAML token attributes configuration.
      • givenname: user.givenname
      • surname: user.surname
      • emailaddress: user.mail
      • name: user.userprincipalname
      • Unique User Identifier: user.userprincipalname
    • The Cobalt app expects the following attributes to be passed in the SAML response:
      NameSource Attribute
    • Under SAML Signing Certificate, download Certificate (Base 64).
    • Under Set up [Your App], copy the required values.
  3. Assign users to the application.
  4. Configure SAML settings in the Cobalt app in Settings > Identity & Access > SAML 2.0.
    • For these parameters, enter values from Azure AD:
      • IdP Issuer URL: Azure AD Identifier
      • IdP Target URL: Login URL
      • IdP Certificate: Certificate (Base64)
    • Save the IdP Relay State value that appears in red.
  5. In Azure AD, under Basic SAML Configuration, paste the IdP Relay State value into Relay State.
  6. Test your configuration.


To set up SAML SSO with Duo, read their documentation.

For This Parameter in Cobalt Enter This Value from Duo
IdP Issuer URL Entity ID
IdP Target URL Single Sign-On URL
IdP Certificate Certificate

For This Parameter in Duo Enter This Value from Cobalt
Entity ID
Assertion Consumer Service (ACS) URL
Default Relay State IdP Relay State

In Duo, complete the SAML Response section with:

  • NameID format: urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
  • NameID attribute: mail
  • Signature algorithm: SHA256
  • Signing options: Select Sign response and Sign assertion.
  • Map attributes:
    • IdP Attribute: enter mail.
    • SAML Response Attribute: enter email.


For instructions on how to enable SAML SSO with Google, read their guide.

For This Parameter in Cobalt Enter This Value from Google
IdP Issuer URL Entity ID
IdP Certificate Certificate

For This Parameter in Google Enter This Value from Cobalt
Entity ID
Start URL IdP Relay State

In the Google Admin console, configure the following:

  • On the Attribute Mapping page, add an attribute email, and select Basic Information and Primary Email.

Once you’ve completed the setup, your application for Cobalt appears in the Google Workspace.


To learn how to configure Okta as IdP, read their documentation.

We recommend creating a SAML integration for Cobalt manually. You can also use the Cobalt app on Okta. To learn more, see how to configure SAML SSO with Okta.

For This Parameter in Cobalt Enter This Value from Okta
IdP Issuer URL Identity Provider Issuer
IdP Target URL Identity Provider Single Sign-On URL
IdP Certificate X.509 Certificate

For This Parameter in Okta Enter This Value from Cobalt
Single Sign On URL
Audience URI (SP Entity ID)
Default Relay State IdP Relay State

Okta supports the following mapping attributes:

Name Value


For more information about setting up SAML SSO with OneLogin, refer to their documentation.

To configure SAML SSO with OneLogin:

  1. Create a custom application connector for Cobalt. Follow OneLogin instructions to build a SAML Custom Connector (Advanced). Enter the following values for configuration parameters in OneLogin:
    • Audience (EntityID):
    • Recipient, ACS (Consumer) URL Validator, and ACS (Consumer) URL:
    • SAML initiator: OneLogin
    • SAML nameID format: Email
    • SAML issuer type: Specific
    • SAML signature element: Assertion
  2. In OneLogin, navigate to your application connector. On the SSO tab, under SAML Signature Algorithm, select SHA-256.
  3. Configure parameters in the Cobalt app in Settings > Identity & Access > SAML 2.0.
    • Insert the following values from OneLogin. You can find them on the SSO tab of your application connector.
      • IdP Issuer URL: Issuer URL
      • IdP Target URL: SAML 2.0 Endpoint (HTTP)
      • IdP Certificate: X.509 Certificate > View Details
    • Copy the IdP Relay State value that appears.
  4. Navigate to your application connector in OneLogin.
  5. On the Configuration tab, insert your IdP Relay State from Cobalt into the RelayState field.
  6. On the Parameters tab, select Add Parameter.
    • Under Field name, enter email, then select Include in SAML assertion, and select Save.
    • Under Value, select Email, and select Save.
  7. Assign users in OneLogin:
    • Go to Administration.
    • In the menu, select Users > Users.
    • Assign users to your application.
  8. To test your configuration, sign in to OneLogin as your assigned user. You should see a custom application for Cobalt that you configured. Select this application to sign in to Cobalt.

Troubleshoot Your SAML SSO Configuration

To get help, contact your Customer Success Manager (CSM) or We’ll turn off SAML SSO for your organization. Then you can configure it again.

Troubleshooting Tip Details
Ensure that the IdP certificate is accurate. Copy the IdP certificate once again.
• Include -----BEGIN CERTIFICATE----- and -----END CERTIFICATE-----.
• Make sure there are no extra whitespaces.
Check that the organization tokens (IdP Relay State in Cobalt) match in the IdP system and Cobalt. Pay attention to quotation marks. Check that all quotation marks in the organization tokens are straight quotes " " and not curly quotes “ ”.
Ensure that you added users to the Cobalt platform. We don’t support user provisioning through an IdP. When leveraging an IdP, make sure that there is an established identity for a user in Cobalt.
To establish an identity in Cobalt, a user needs to create a password and sign in to Cobalt. All subsequent sign-ins (after the user identity is established in Cobalt) are initiated through the organization’s IdP.
Ensure that all values match between your identity provider and Cobalt. Mapped parameters in both setups must match.

Was this page helpful?

Yes No Create an Issue

Last modified March.03.2023