Integrate with HashiCorp Cloud Platform
Support level: Community
What is HashiCorp Cloud Platform?
The HashiCorp Cloud Platform (HCP) is a unified suite of SaaS products that automate the lifecycle management of the infrastructure and security supporting your most critical applications.
Preparation
The following placeholders are used in this guide:
authentik.companyis the FQDN of the authentik installation.
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.
Before you configure authentik, log in to the HCP Portal, open the organization that you want to configure, and navigate to Organization settings > SSO. Configure SSO for the organization, verify the email domains that should use SSO, and select SAML as the SSO protocol.
Domain verification is required by HCP before SAML SSO can be completed, but managing DNS records is outside the scope of this guide. After the domain is verified, copy the following values from the Initiate SAML integration section:
- SSO Sign-On URL
- Entity ID
- Email Attribute Assertion Name
authentik configuration
To support the integration of HashiCorp Cloud Platform with authentik, you need to create a property mapping and an application/provider pair in authentik.
Create an email property mapping
HCP requires a SAML attribute that contains the user's email address. The attribute name is generated by HCP, so create a SAML provider property mapping that uses the Email Attribute Assertion Name value copied from HCP.
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Customization > Property Mappings, click Create, select SAML Provider Property Mappings, and then click Next.
-
Configure the property mapping:
-
Name:
HCP email -
SAML Attribute Name: enter the Email Attribute Assertion Name copied from HCP.
-
Expression:
return request.user.email
-
-
Click Finish.
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.
- Navigate to Applications > Applications and click New Application to open the application wizard.
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings.
- Set the Launch URL to
https://portal.cloud.hashicorp.com/.
- Set the Launch URL to
- 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.
- Set the ACS URL to the SSO Sign-On URL copied from HCP.
- Set the Audience to the Entity ID copied from HCP.
- Under Advanced protocol settings:
- Select an available Signing Certificate.
- Set NameID Property Mapping to
authentik default SAML Mapping: Email. - Under Selected User Property Mappings, add the
HCP emailproperty mapping 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.
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings.
- Click Submit to save the new application and provider.
Copy the SAML endpoint and signing certificate
- Navigate to Applications > Providers and click the name of the provider that you created.
- Under Related objects > SAML Endpoint, copy the endpoint URL.
- Under Related objects > Download signing certificate, click Download. Open the downloaded certificate in a text editor and copy its contents.
HashiCorp Cloud Platform configuration
- Return to the HCP SAML SSO setup page.
- Enter the values from authentik:
- SAML IDP Single Sign-On URL: enter the SAML Endpoint URL copied from authentik.
- SAML IDP Certificate: paste the signing certificate contents copied from authentik.
- Assign the default organization role that HCP should grant to SSO users.
- Optional: enable Assign users an organization role.
- Click Save.
Configuration verification
To confirm that authentik is properly configured with HashiCorp Cloud Platform, open the integration from the authentik User interface. If HCP prompts for an email address, enter an address that uses a verified SSO domain. HCP redirects you to authentik, and after a successful login, signs you in to the organization.