Set up SAML SSO with Keycloak
If you self-host identity with Keycloak, DMARCS is just another SAML client in the realm. This assumes SSO is already on, from SAML setup.
- Where to find it
- Organization → Integrations → SSO
- Who can use it
- Organization Admin in DMARCS; an admin on the Keycloak realm you want to use
- Time needed
- 10 minutes
- You will need
- Admin access to that Keycloak realm
Create the SAML client
- Create the client
In the Keycloak Admin Console, open the realm you want to use, go to Clients → Create client, and choose SAML as the client type.
Point it at DMARCS
- Client ID
https://your-domain.com/api/saml/metadata- Valid Redirect URIs AND Master SAML Processing URL
https://your-domain.com/api/api.php?action=saml_acs
Both the Valid Redirect URIs field and the Master SAML Processing URL field on the client's Settings page need the same ACS URL.
Map the email attribute
Keycloak's default Name ID Format is email for most realms; check the client's Advanced settings if your users don't sign in with their email address directly.
Give DMARCS Keycloak's details, then test
- Get the metadata into DMARCS
Download the realm's SAML IdP metadata from Realm settings → General → Endpoints, and upload it on DMARCS's SSO page with Upload Metadata, or copy the SSO endpoint and certificate by hand.
- Check access
Keycloak clients are open to all realm users by default; restrict it first if that's not what you want.
- Enable and test
Switch on Enable SSO on DMARCS's SSO page and save, then sign in from a private browser window.
Still need a hand?
Email support@dmarcs.com, call +971 4 240 4441, or open a ticket from Support inside the app.