Identity and people

Keycloak

Set up a SAML client in your organization’s Keycloak realm.

Deployment
BYOC

You need administration access to the correct realm and your Diakrin setup packet. Your identity service must be reachable from the browser; private installations may require your company VPN.

Create the client

  1. In the realm’s Clients section, import Diakrin’s SP metadata XML, or create a client with type SAML.
  2. Set Client ID to Diakrin’s SP Entity ID.
  3. Set the assertion-consumer POST endpoint to the exact Diakrin ACS URL. Restrict Valid Redirect URIs to that URL and use POST binding.
  4. Set Name ID Format to persistent; Keycloak then sends a stable identifier per user that is never reused. Include a SAML mapper named email for the work-email value.
  5. Enable signed assertions with RSA-SHA256 and apply access restrictions to your pilot users.

Map the fields

Keycloak fieldValue
Client IDDiakrin SP Entity ID
Assertion Consumer Service POST Binding URLDiakrin ACS URL
Valid Redirect URIsExact Diakrin ACS URL
Name ID Formatpersistent, never email
Protocol mapper emailDirectory work email

Use the fine-grained ACS endpoint when available. The Master SAML Processing URL also affects logout routing, so review it rather than assuming logout support.

Activate and test

Obtain the realm’s IdP descriptor at its /realms/REALM/protocol/saml/descriptor endpoint. In Settings → Sign-in → SSO identity provider, paste the metadata URL or upload the XML, then select Verify and connect. After activation, follow Test and roll out SSO.

Official reference: Keycloak server administration — SAML clients ↗.

Next stepTest and roll out SSO →