GitLab - SAML Relying Party Configuration - RSA Ready Implementation Guide
2 years ago
Originally Published: 2021-11-01
  1. Click Add a Relying Party.      
  2. On the Relying Party Catalog page, click Add corresponding to Service Provider SAML.                                                                          image.png
  3. On the Basic Information page, enter the name for the application in the Name field and click Next Step.                                           image.png
  4. On the Authentication page, select SecurID manages all authentication.
  5. Select a Primary Authentication Method and Access Policy as required and click Next Step.                                                      image.png
  6. For providing Service Provider details:
    1. Click Import Metadata and click Choose File.
    2. Select the file that is downloaded from the Service Provider. 
      Refer to the Configure GitLab section to download the metadata file.                                                                                     image.png
  7. Review the ACS URL and Service Provider Entity ID values that are auto-filled.                                                                                       image.png
  8. In the SAML Response Protection section, select IdP signs entire SAML response.
  9. Download the certificate by clicking Download Certificate.                                                                                                                     image.png
  10. Click Show Advanced Configuration.
  11. Under the User Identity section, configure Identifier Type and Property. For example, Identifier Type: persistent and Propertymail.   image.png
  12. Click Save and Finish.
  13. On the My Relying Parties page, click the Edit drop-down icon and select the Metadata option to download the metadata.             image.png
  14. Click Publish Changes. Your application is now enabled for SSO.                                                                                                         image.pngimage.png

Configure GitLab

Perform these steps to configure GitLab.
Procedure

  1. Sign in to GitLab using administrator credentials - gitlab.com.
  2. In the left pane, select Search or go to Groups and find your group.                                                                                                         image.png
  3. Click Settings > SAML SSO.                                                                                                                                                                       image.png
  4. Copy the GitLab metadata URL and download the metadata file.                                                                                                               image.png
  5. Provide the following details in Configuration.
    1. Identity provider single sign-on URL: Obtain from the metadata file downloaded from RSA.
    2. Certificate fingerprint: See the Notes section for the instructions on how to obtain certificate fingerprint.
    3. Default membership role: Select the role to assign to new users. The default role is Guest. 
      Group Owners can set a Default membership role other than Guest.
    4. Select the Enable SAML authentication for this group checkbox.
    5. Select the Enforce SSO-only authentication for web activity for this group checkbox (Optional).
    6. Select the Enforce SSO-only authentication for Git activity for this group checkbox (Optional).
  6. Click Save changes.                                                                                                                                                                                 image.png

Notes

To obtain the certificate fingerprint follow the steps:

  1. Install the latest version of OpenSSL for Windows.
  2. Open the Windows Command-line.
  3. Navigate to the OpenSSL installation directory (the default directory is C:\OpenSSL-Win32\bin).
  4. Run the following commands to view the certificate fingerprint/thumbprint: penssl x509 -noout -fingerprint -sha1 -inform pem -in <Certificate.pem>.                                                                                                                                                                                        image.png

The configuration is complete.

Return to GitLab - RSA Ready Implementation Guide.