Keycloak (SAML)
Use Hanzo IAM as SAML IdP in Keycloak.
This guide configures Hanzo IAM as a SAML v2.0 identity provider in Keycloak.
Add the SAML IdP in Keycloak
- In the Keycloak admin console, go to Identity providers and add SAML v2.0.
- On the IdP configuration page, set Alias and paste the Hanzo IAM metadata URL into Import from URL (you can copy this from the Hanzo IAM application edit page).
- Click Import so Keycloak fills the SAML settings.
- Note the Service Provider Entity ID and save.

:::info See Keycloak SAML Identity Providers for full options. :::
Configure the application in Hanzo IAM
In the Hanzo IAM application edit page:
- Add a Redirect URL that matches the Service Provider Entity ID from Keycloak.
- Enable SAML compress for Keycloak.

Sign in with Hanzo IAM SAML
On the Keycloak login page, use the button for the Hanzo IAM SAML provider. You will be redirected to Hanzo IAM to sign in, then back to Keycloak. Assign users to the application as needed.

How is this guide?
Last updated on