Skip to main content

VSCode Tutorial - Login via SSO


This tutorial is designed to teach how to log in from a SAML Single Sign On (SSO).


  • VSCode 1.44 or later

  • SAST 8.9 or higher with known user credentials

  • Source code available

  • Checkmarx VSCode extension installed and enabled

  • Quick fix (QF) applied for the SAML flow to operate. The required quick fix depends on the SAST version in use:

    • For SAST 9.4:

    • For SAST 9.3:

    • For SAST 9.2:


  1. Create a new CxSAST instance with SSO enabled by following the instructions provided in Configuring Single Sign-On (SSO).

  2. Register your Windowsuser in Access Control by doing the following:

    1. Navigate to the Access Control screen.

    2. Click <ADD USER>. The Add New User dialog opens.

    3. Click Import From Directory. The Import Directory User Details dialog appears.

    4. Under Directory, navigate to the relevant directory.

    5. Search for the user using the search box.

    6. Once the user is displayed in the search box, click <IMPORT>. The required personal details are filled automatically in the General tab.

    7. Open the Teams tab and assign the username to a team.

    8. Open the Roles tab and assign a role to the username.

    9. Click <SAVE>. A new row is added with the username in the Users tab on the Access Control page.

  3. Click <+> to add a new CX PORTAL.

  4. Enter the SAST Server URL.

  5. Enter the SAST Server alias.

  6. Click the Lock icon. You are asked to select the login method.

  7. Select Single Sign On as the login method.


If the user selects Single Sign On, the user is redirected to the SAST Server login page where he/she can use the SAST server credentials or the SAML login. Once logged in, users are redirected to VSCode and the login is completed.


Scan a new project and make sure that the scan is completed successfully and the results are retrieved.