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.
Preparation
The following placeholders are used in this guide:
authentik.companyis the FQDN of the authentik installation.gitguardian.companyis the FQDN of the GitGuardian installation, when using self-hosted GitGuardian.
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 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.
- SAML SSO
- SCIM provisioning (optional)
authentik configuration
Create property mappings
GitGuardian expects SAML attributes named first_name and last_name.
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Customization > Property Mappings and click Create.
-
Select SAML Provider Property Mapping as the property mapping type and click Next.
-
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
-
-
Click Finish to save the property mapping.
-
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
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.
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
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 nameandGitGuardian last nameproperty mappings that you created in the previous section.
- Temporarily set the ACS URL and Audience to
- 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.
-
Click Submit to save the new application and provider.
Download the signing certificate
- Navigate to Applications > Providers and click the name of the SAML provider that you created.
- Under Related objects > Download signing certificate, click Download. This certificate file is required in the GitGuardian SSO setup flow.
GitGuardian configuration
- 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. - Navigate to Settings > Authentication.
- Under SAML, click Configure.
- Copy the following values because they are required in the next section:
- ACS URL
- SP Entity ID
- Keep the GitGuardian SAML setup page open.
Update the authentik provider
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Applications > Providers and open the provider that you created earlier.
- Under Protocol settings, set the following values:
- ACS URL: the ACS URL value from GitGuardian.
- Audience: the SP Entity ID value from GitGuardian.
- Click Update to save the provider.
Register the identity provider
- Return to the GitGuardian SAML setup page.
- 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.
- Entity Id:
- 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.
Use SCIM provisioning to create, update, deactivate, and delete GitGuardian users and teams from authentik. Configure SAML SSO first, as described in the SAML SSO tab.
GitGuardian SCIM provisioning uses email addresses as user identifiers, so only users with emails can be provisioned. Ensure every authentik user you plan to provision to GitGuardian has a valid email address configured.
Create SCIM property mappings in authentik
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Customization > Property Mappings and click Create.
-
Select SCIM Provider Mapping as the property mapping type and click Next.
-
Create a property mapping with the following values:
-
Name:
GitGuardian SCIM user -
Expression:
user_email = request.user.emailgiven_name = request.user.name or request.user.usernamefamily_name = " "formatted = request.user.name or request.user.usernameif " " in formatted:given_name, _, family_name = formatted.partition(" ")return {"userName": user_email,"externalId": user_email,"name": {"formatted": formatted,"givenName": given_name,"familyName": family_name,},"displayName": formatted,"active": request.user.is_active,"emails": [{"value": user_email,"type": "work","primary": True,}],}
-
-
Click Finish to save the property mapping.
-
Repeat steps 2-5 to create the following additional SCIM provider property mapping:
-
Name:
GitGuardian SCIM group -
Expression:
return {"displayName": group.name,"externalId": str(group.pk),}
-
Enable SCIM in GitGuardian
- In GitGuardian, navigate to API > Service accounts.
- Click Create service account.
- Enter a name, then add the following permissions:
members:writeteams:write
- Click Create and copy the generated token.
- Navigate to Settings > Authentication.
- Under SCIM, enable SCIM integration.
Create the SCIM provider in authentik
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Applications > Providers and click Create.
- Select SCIM Provider as the provider type and click Next.
- Configure the following settings:
- Name: provide a descriptive name.
- URL:
- For GitGuardian SaaS, enter
https://api.gitguardian.com/v1/scim/v2. - For self-hosted GitGuardian, enter
https://gitguardian.company/exposed/v1/scim/v2.
- For GitGuardian SaaS, enter
- Token: paste the GitGuardian service account token.
- User Property Mappings: remove
authentik default SCIM Mapping: User, then addGitGuardian SCIM user. - Group Property Mappings: remove
authentik default SCIM Mapping: Group, then addGitGuardian SCIM group. - Group filters (optional): select only the GitGuardian-specific groups that should be provisioned as teams.
- Click Finish to save the provider.
- Navigate to Applications > Applications and open the GitGuardian application.
- Add the SCIM provider to Backchannel Providers.
- Click Update.
Users that should be provisioned to GitGuardian must be bound to the GitGuardian application in authentik. If no group filters are selected on the SCIM provider, authentik synchronizes all groups.
Configuration verification
To confirm that SCIM provisioning is working, assign a test user to the GitGuardian application in authentik. Open the SCIM provider in authentik, click Run sync again, and confirm that the user is provisioned in GitGuardian.