SAML Providers
Learn how to set up an Enterprise Connection with Google.
Prerequisites
You need your project’s SAML Assertion Consumer Service (ACS) URL and the Service Provider (SP) Entity ID.
Service Provider Entity ID
The SP Entity ID for your Hanko project is equal to the API URL of your project.
To find the API URL for your project:
- Log in to Hanko Cloud and select your project.
- Navigate to
Dashboard
. - Copy and save the
API URL
.
Service Provider ACS URL
To find the Assertion Consumer Service (ACS) URL for your project:
- Log in to Hanko Cloud and select your project.
- Navigate to
Settings > Enterprise connections
. - Under
Enterprise connections
find theRedirect URL
panel. - Copy and save the URL.
Create a Google Workspace application
- Sign in to the Google Admin Console.
- In the left sidebar select
Apps > Web and mobile apps
. - Toggle the
Add app
dropdown in the main view. - Click
Add custom SAML app
.
- Provide a name for your app.
- Click
Continue
.
- Click
Download Metadata
. You currently need to download the file and host it yourself because Hanko needs access to the file using a URL, see Hosting the SAML XML Metadata file. - Click
Continue
.
- Under
ACS URL
enter your ACS URL (see Prerequisites - Service Provider ACS URL). - Under
Entity ID
enter you project API URL (see Prerequisites - Service Provider Entity ID). - Click
Continue
.
- In the
Attributes
panel, clickAdd Mapping
.
- Provide the following mapping:
Google Directory Attribute | App attribute |
---|---|
Primary email | http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress |
- Click
Finish
.
- You should be redirected to your app’s “dashboard”. Click the
User access
panel.
- Set the
Service status
toON for everyone
. - Click
Save
.
Hosting the SAML XML Metadata file
Google only allows downloading the SAML metadata XML file but Hanko currently does not support upload of metadata files (and IdP certificates) and requires access to the file through a URL. You need host the file on a public web service (e.g. AWS S3 bucket, Cloudflare R2, or public website) that can be accessed by Hanko.
Configure an enterprise connection
- Log in to Hanko Cloud and select your project.
- Navigate to
Settings > Enterprise connections
. - Under
Connections
, clickNew connection
.
- In the shown modal provide the following data:
- A
Name
for the connection. - A
Domain
for the connection. When users authenticate via SAML SSO, the domain of the email address provided as an identifier at the start of an authentication flow must match the domain configured here. - A
Metadata URL
. This is the URL of your hosted SAML XML Metadata file. - Select whether you want skip email verification for this provider.
- A
- Click
Save
to create the connection.
Testing your integration
To test your integration via IdP-initiated flow:
- Open one of the Google Workspace applications, e.g. Google Calendar.
- Access the user’s available applications in the top navigation.
- Find your application and click the icon for your application.
Was this page helpful?