Skip to main content

Configuring SAML Integration

To add a new external SAML v2.0 provider, perform the following:

Click on SAML v2.0

6238011440.png

Add identity provider configuration window will open.

Configuring a new SAML Server

Note

Mandatory fields are marked with red_asterix.png.

The SAML configuration window includes the following sections:

App Settings

This configuration section refers to the IAM (Broker) side.

Below are all the configuration options that exist in this section.

Parameter

Description

Default

Notes

Redirect URI

Client redirect URI

Alias

The alias that uniquely identifies the identity provider. It is also used to build the redirect URI

Display Name

The name that will be presented in the identity provider’s table

Enabled

On

Store Tokens

Determine if to save the token in Checkmarx One DB in an encoded format, after the users' authentication

Off

Stored Tokens Readable

Determine if to save the token in Checkmarx One DB in a Decoded format, after the users' authentication

Off

Trust Email

Off

  • On: The provided email is not verified even if verification is enabled for the relm.

  • Off: The provided email is verified.

Account Linking Only

Off

  • On: Users cannot log in through this provider, they can only link to this provider. This is useful if you don't want to allow login from the provider but want to integrate with the provider.

  • Off: Users can log in through this provider.

Hide on Login Page

Determine if to hide the external provider icon in the Checkmarx One log in page

Off

GUI order

Set the external providers icons order in the Checkmarx One log in page

  • 1 is the highest value.

  • This is useful when using several external providers.

SAML Settings

This configuration section refers to the external provider side (not the client).

Below are all the configuration options that exist in this section.

Parameter

Description

Default

Notes

Single Sign-On Service URL

The URL that is used for SAML SSO log in authentication requests

Single Logout Service URL

The URL that is used for external provider log out authentication requests

For a user to log out from the external provider (When performing log out from Checkmarx One), you need to perform the following:

  • Single Logout Service URL needs to be filled with the log out URL address.

  • Backchannel Logout option needs to be enabled.

Backchannel Logout

In case this option is enabled, it supports logging out from the identity provider when logging out from Checkmarx One

Off

NameID Policy Format

Specifies the URI reference corresponding to a name identifier format, or in other words, how to send the details in the SAML XML assertion format

Persistent

Optional Values: Persistent, Email, Kerberos, X.509 Subject Name, Windows Domain Qualified Name, Unspecified

Principal Type

Specifies which part of the SAML assertion XML will be used to identify and track external user identities

Subject NameID

  • Optional Values: Subject NameID, Attribute [Name], Attribute [Friendly Name]

  • If Attribute [Name] / Attribute [Friendly Name] is selected, an additional Principal Attribute field will be added.

HTTP-POST Binding Response

Indicates how the external provider returns the information to the client

Off

  • On: Use POST for Binding Response.

  • Off: HTTP-Redirect Binding will be used (GET)

HTTP-POST Binding for AuthnRequest

Indicates which SAML binding should be used when the client requests authentication from the external provider

Off

  • On: Use POST for Binding Response.

  • Off: Redirect Binding will be used (GET)

HTTP-POST Binding Logout

Indicates which SAML binding should be used for logging out from the external provider

Off

  • On: Use POST for Binding Response.

  • Off: HTTP-Redirect Binding will be used (GET).

  • If value is On, the system will use the Single Logout Service URL value for logging out.

Want AuthnRequests Signed

Indicates whether the identity provider expects a signed AuthnRequest

Off

In case this value is On, 2 additional fields will be added:

  • Signature Algorithm: Which signature algorithm to use for signing documents. Optional values are: RSA_SHA256 (Default), RSA_SHA1, RSA_SHA512, DSA_SHA1

  • SAML Signature Key Name: Signed SAML documents contain identification of signing key in the KeyName element. Optional values are: Empty value (Default), None, KEY_ID, CERT_SUBJET

Want Assertions Signed

Indicates whether this service provider expects a signed Assertion

Off

Want Assertions Encrypted

Indicates whether this service provider expects an encrypted Assertion

Off

Force Authentication

Indicates if to force the user’s authentication, even if the user is already logged in to the external provider

Off

Validate Signature

Enable/disable signature validation of SAML responses

Off

If this value is On, an additional Validating X509 Certificates field will be added. This is an indication of the certificate in PEM format that must be used for checking signatures.

Multiple certificates can be entered, separated by a comma.

Allowed clock skew

Clock skew in seconds that is tolerated when validating identity provider tokens

zero

Import from URL

Import metadata from a remote identity provider SAML entity descriptor

Import from file

Import metadata from a file

If the import is being performed using a file, there is a need to click the Select file button, and to select the requested file.

Configuring a SAML Provider with Azure Active Directory (AD)

This page provides details about SSO configuration on Checkmarx One when using Azure Active Directory.

Instructions

  1. Log in to Checkmarx One using your Tenant, Username and Password.

  2. Click on the Identity_and_Access_MGMT.png icon

  3. In the Identity and Access Management screen click on 6235525678.png icon

  4. Select SAML v2.0

    6235525732.png
  5. Copy the redirect URI

    6235525729.png
  6. On the Azure webapp, set Identifier and Reply URL fields according to the copied Redirect URI.

    • Identifier = A portion of the Redirect URI (until the tenant name).

    • Reply URL = Redirect URI.

      Note

      To create a new Azure webapp go to Enterprise Applications → Create your own application → Integrate any other application you don't find in the gallery (Non-gallery).

      6235525726.png
  7. On Azure, copy the App Federation Metadata Url

    6235525723.png
  8. On Checkmarx One, use the copied link to import the metadata.

    Perform the following:

    1. Copy the URL to Import from URL field.

    2. Click Import

    3. Click Save

  9. 6235525720.png

    Check Checkmarx One SAML configuration.

    This is how SAML settings should look like:

    6235525717.png
    6235525714.png
  10. On Azure, check that the claims are correctly configured.

    6235525711.png
    6235525708.png
  11. In Checkmarx One, create a mapper for the Username

    1. Click on Mappers tab.

    2. Click Create

      6235525705.png
    3. Fill the information and click Save

      6235525702.png
  12. Create a FirstName Mapper.

    6235525699.png
  13. Create a Surname Mapper.

    6235525696.png
  14. Create an Email Mapper.

    6235525693.png
  15. Create a Role Mapper.

    6235525690.png

Warning

For this example, the Role claim configured on Azure is a constant “ast-viewer”.

This will map all users to assume the ast-viewer role.

Azure can send other values on this claim.

You will need to add a mapper for each value, to convert the azure claim value into a Checkmarx One role.

Explore other Mapper Types for other ways to map roles.

Importing Groups

Checkmarx One can also import groups from Azure AD.

Create the GroupMapper:

6235525687.png

On Azure, add a group claim.

6235525684.png

Warning

This azure configuration example will return the group ids. Check Azure AD documentation on how to provide a friendly name.

Related article: How To Work Around The Azure SAML Group Claim Limitations

Troubleshooting

A good way to troubleshoot issues with the configuration is to only configure one mapper, for example a Given Name.

When the information is incomplete, the user will be prompted to enter the user’s missing data.

6235525681.png

In the image above, we can check that Checkmarx One is being able to retrieve the First Name correctly.

This form is only shown when the user logs in for the first time.

Configuring a SAML Provider with OKTA

This page provides details about SSO configuration with SAML on Checkmarx One using OKTA.

Instructions

Start Creating a new Identity Provider via Checkmarx One

  1. Log in to Checkmarx One using your Tenant, Username and Password.

  2. Click the on Identity_and_Access_MGMT.png icon

  3. In the Identity and Access Management screen click on 6235526044.png

  4. Select SAML v2.0

    6235526041.png
  5. Copy the Redirect URI

    6235526038.png

Create an Application in OKTA

  1. Log in to the OKTA console using an admin account.

  2. In the OKTA home page, click on Applications

  3. In the Applications page, click Create App Integration

    6235526035.png
  4. The Create a New Application Integration popup opens.

  5. In the Create a New Application Integration, perform the following:

    1. Select SAML 2.0

    2. Click Next

      6235526032.png
  6. In the Create SAML Integration page, perform the following:

    1. Configure the App name

    2. Click next

      6235526029.png
  7. Paste the Redirect URI (copied in first step).

    6235526026.png
  8. Go to Attribute Statements section configure the base mapper fields:

    1. First Name

    2. Last Name

    3. Email

    4. Role

      Note

      Make sure to set value with “user.” prefix for First Name, Last Name and Email.

      For Role, set the ast-viewer value.

      6235526023.png
  9. Add Groups Attribute Statement (Optional):

    1. Under the Group Attribute Statements, create a new statement named “Groups”.

    2. Select the filter option that best describes your use-case.

      Note

      Configuring “.*” will import all the groups.

      6235526020.png
  10. After setting Attribute and Group Statements, scroll down to the bottom and click Next

  11. Select if you are a customer or partner and click Finish

    6235526017.png
  12. In the Sign On tab, click on Identity Provider metadata link.

    6235526014.png
  13. This will open a new tab with the App Federation Metadata URL, copy the URL

    6235526011.png

Finish Creating Identity Providers via Checkmarx One

  1. In Checkmarx One, use the copied link to import the metadata, by performing the following:

    1. Copy the URL to Import from URL field.

    2. Click Import

    3. Click Save

      6235526008.png
  2. Check the Checkmarx One SAML configuration.

  3. This is how SAML settings should look:

    6235526005.png
    6235526002.png
  4. Click on Mappers tab and click Create

    6235525999.png
  5. Create a First Name Mapper.

    6235525996.png
  6. Create a Last Name Mapper.

    6235525993.png
  7. Create an Email Mapper.

    6235525990.png
  8. Create a Role Mapper.

    6235525987.png
  9. Create the GroupsMapper (Optional) - If you added the attribute statement in the OKTA configuration.

    6235525984.png

Warning

For this example, the Role claim configured on OKTA is a constant “ast-viewer”.

This will map all users to assume the ast-viewer role.

OKTA can send other values on this claim.

You will need to add a mapper for each value, to convert the OKTA claim value into a Checkmarx One role.

Explore other Mapper Types for other ways to map roles.