Skip to main content

Integrate with GitGuardian

Support level: Community

What is GitGuardian?

GitGuardian is a security platform that helps teams detect and remediate exposed secrets, monitor software development lifecycle credentials, and govern non-human identities.

-- https://www.gitguardian.com/

Preparation

The following placeholders are used in this guide:

  • authentik.company is the FQDN of the authentik installation.
  • gitguardian.company is the FQDN of the GitGuardian installation, when using self-hosted GitGuardian.
info

This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application.

GitGuardian requirements

GitGuardian SAML SSO can be configured by the Owner or any Manager of the workspace. GitGuardian supports Just-In-Time (JIT) provisioning for users who are authorized to access the authentik application. SCIM provisioning requires SAML SSO to be configured first.

Integration configuration

To support the integration of GitGuardian with authentik, you need to create property mappings and an application/provider pair in authentik. Optionally, to provision GitGuardian users and teams from authentik, also create the SCIM property mappings and a SCIM provider.

authentik configuration

Create property mappings

GitGuardian expects SAML attributes named first_name and last_name.

  1. Log in to authentik as an administrator and open the authentik Admin interface.

  2. Navigate to Customization > Property Mappings and click Create.

  3. Select SAML Provider Property Mapping as the property mapping type and click Next.

  4. Create a property mapping with the following values:

    • Name: GitGuardian first name

    • SAML Attribute Name: first_name

    • Expression:

      return request.user.name.split(" ", 1)[0] if request.user.name else request.user.username
  5. Click Finish to save the property mapping.

  6. Repeat steps 2-5 to create the following additional SAML provider property mapping:

    • Name: GitGuardian last name

    • SAML Attribute Name: last_name

    • Expression:

      return request.user.name.rsplit(" ", 1)[-1] if " " in request.user.name else ""

Create an application and provider

SAML provider changes in authentik 2026.5

authentik 2026.5 introduces changes to how the SAML provider behaves. Specifically, the provider now automatically sets the Issuer value to: https://authentik.company/application/saml/<application_slug>/metadata/

Older versions of authentik set this value to authentik by default. If you're running an older version, please set Issuer to https://authentik.company/application/saml/<application_slug>/metadata/, where <application_slug> is the slug that you selected for the application.

  1. Log in to authentik as an administrator and open the authentik Admin interface.

  2. Navigate to Applications > Applications and click New Application to create an application and provider pair.

    • Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings. Note the Slug value because it is required later.
    • Choose a Provider type: select SAML Provider as the provider type.
    • Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
      • Temporarily set the ACS URL and Audience to https://temp.temp.
      • Under Advanced protocol settings:
        • Select any available Signing Certificate.
        • Set NameID Property Mapping to authentik default SAML Mapping: Email.
        • Set Default NameID Policy to Email address.
        • Add the GitGuardian first name and GitGuardian last name property mappings that you created in the previous section.
    • Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's Application Dashboard page.
  3. Click Submit to save the new application and provider.

Download the signing certificate

  1. Navigate to Applications > Providers and click the name of the SAML provider that you created.
  2. Under Related objects > Download signing certificate, click Download. This certificate file is required in the GitGuardian SSO setup flow.

GitGuardian configuration

  1. Log in to the GitGuardian dashboard as the workspace Owner or a Manager. For GitGuardian SaaS, use https://dashboard.gitguardian.com/. For self-hosted GitGuardian, use https://gitguardian.company.
  2. Navigate to Settings > Authentication.
  3. Under SAML, click Configure.
  4. Copy the following values because they are required in the next section:
    • ACS URL
    • SP Entity ID
  5. Keep the GitGuardian SAML setup page open.

Update the authentik provider

  1. Log in to authentik as an administrator and open the authentik Admin interface.
  2. Navigate to Applications > Providers and open the provider that you created earlier.
  3. Under Protocol settings, set the following values:
    • ACS URL: the ACS URL value from GitGuardian.
    • Audience: the SP Entity ID value from GitGuardian.
  4. Click Update to save the provider.

Register the identity provider

  1. Return to the GitGuardian SAML setup page.
  2. Configure the identity provider fields with the following values:
    • Entity Id: https://authentik.company/application/saml/<application_slug>/metadata/
    • Single Sign On Url: https://authentik.company/application/saml/<application_slug>/
    • X509 certificate: upload or paste the signing certificate that you downloaded from authentik.
    • I have mapped the attributes first_name and last_name in my IdP: select this option.
  3. Submit the form to finish the SAML integration.

Configure access controls (optional)

GitGuardian can create users on their first SAML login with JIT provisioning. To control who can join the workspace, configure an authentik binding for this application so only authorized users can access it.

After SAML works, GitGuardian SaaS can also reserve your email domain so users are automatically redirected to SSO from the standard login page and cannot create separate workspaces with that email domain. Domain reservation is outside the scope of this integration guide and is not available for self-hosted GitGuardian.

Configuration verification

To confirm that authentik is properly configured with GitGuardian, log out of GitGuardian and open the GitGuardian SSO login URL. You should be redirected to authentik and, after authenticating, returned to GitGuardian. For self-hosted GitGuardian, use the SSO login URL shown in your self-hosted dashboard.

Resources