website/docs/users-sources/sources/social-logins/keycloak/index.md
Allows users to authenticate using their Keycloak credentials by configuring Keycloak as a federated identity provider via SAML.
The following placeholders are used in this guide:
authentik.company is the FQDN of the authentik installation.keycloak.company is the FQDN of the Keycloak installation.keycloak-slug is the slug you will assign to the SAML source in authentik (e.g., keycloak).Before configuring either service, you need to export the signing certificates from both Keycloak and authentik. Each service needs the other's public certificate to verify signatures and handle SAML encryption.
SIG.-----BEGIN CERTIFICATE-----
<Copied Keycloak Public Key Certificate Content>
-----END CERTIFICATE-----
authentik Self-signed Certificate).SAML.https://authentik.company/source/saml/<keycloak-slug>/metadata/.https://authentik.company/source/saml/<keycloak-slug>/acs/.https://authentik.company/source/saml/<keycloak-slug>/acs/.https://authentik.company.Keycloak Signing Certificate.Keycloak.keycloak.https://keycloak.company/realms/<realm-name>/protocol/saml.https://keycloak.company/realms/<realm-name>/protocol/saml.https://authentik.company/source/saml/<keycloak-slug>/metadata/.Post (Auto-Submit).authentik Self-signed Certificate).authentik Self-signed Certificate).:::info Display new source on login screen For instructions on how to display the new source on the authentik login page, refer to the Add sources to default login page documentation. :::
:::info Embed new source in flow :ak-enterprise For instructions on embedding the new source within a flow, such as an authorization flow, refer to the Source Stage documentation. :::