SAML Providers
Microsoft Entra
Learn how to set up an Enterprise Connection with Microsoft Entra.
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 Microsoft Entra application
- Sign up or sign in with Microsoft Entra.
- Once you’re logged in, select
Identity > Applications > Enterprise Applications
in the left sidebar. - Click
New Application
. This will open theMicrosoft Entra Gallery
.
- In the
Microsoft Entra Gallery
, clickCreate your own appplication
. - Give your application a name.
- Select
Integrate any other application you don't find in the gallery (Non-gallery)
. - Click
Create
to create the application.
- Once your app is created, select
Single sign-on
in the application sidebar. - Select
SAML
as the SSO method.
- Find the
Basic SAML configuration
panel and clickEdit
.
- Under
Identifier (Entity ID)
clickAdd identifier
and enter you project API URL (see Prerequisites - Service Provider Entity ID). - Under
Reply URL (Assertion Consumer Service URL)
clickAdd reply URL
and enter your ACS URL (see Prerequisites - Service Provider ACS URL). - Click
Save
.
- In the
SAML Certificates
panel, find theApp Fedration Metadata Url
and copy it. You need this for configuring the enterprise connection with Hanko.
Attribute mapping
SAML SSO integration with Hanko requires an attribute with a user’s email address in IdP’s SAML response’s attribute statement. To ensure this attribute is present:
- In your application’s
Single sign-on
configuration, find theAttributes & Claims
panel and clickEdit
.
- There should be
Additional Claims
listed that have been added to your application per default. Find the claim that maps the Entra user’suser.email
property and click it.
- Ensure that the
Name
is equal toemailaddress
and theNamespace
is equal tohttp://schemas.xmlsoap.org/ws/2005/05/identity/claims
. - If your users do not have an email set for the
user.email
property, choose a different source for the mapping. Note that the email address value present in this attribute is used to provision and link accounts. This means that any new accounts created at your Hanko project will use this email address value and any existing accounts in your Hanko project will be linked via this email address value.
Assign users to your application
In order for users to log in you probably have to assign users to it.
- Select
Identity > Applications > Enterprise Applications
in the left sidebar. - Select your application, then select
Manage > Properties
. - Ensure that your application is enabled for users to sign-in.
- Choose whether user assignment is required for this app. If set to
No
, all users will be able to sign in. - Choose whether this app is visible to users. If this option is set to yes, then assigned users will see the
application on
My Apps
in their profile and the O365 app launcher.
- If you selected
Yes
in step 4, then selectManage > Users and groups
. - Click
Add user/group
.
- Under
Users
, clickNone selected
/X user selected
. - Select the users you want to assign.
- Click
Select
.
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 you copied in step 14 in Create a Microsoft Entra application. - 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:
- Navigate to the
Single sign-on
configuration for your application (see step 8 in Create a Microsoft Entra application). - Find the
Test single sign-on with My App
panel and click theTest
.
Was this page helpful?