Class TraefikProxySslClientCertificateLookup

java.lang.Object
org.keycloak.services.x509.TraefikProxySslClientCertificateLookup
All Implemented Interfaces:
Provider, X509ClientCertificateLookup

public class TraefikProxySslClientCertificateLookup extends Object implements X509ClientCertificateLookup
The provider allows to extract X.509 client certificates forwarded to the Keycloak middleware configured behind a Traefik reverse proxy using the PassTLSClientCert middleware with pem: true.

Traefik's PassTLSClientCert middleware (with pem: true) forwards the client certificate and any intermediate CA certificates as URL-encoded PEM blocks in the X-Forwarded-Tls-Client-Cert HTTP header, separated by commas.

Example Traefik configuration:

 [http.middlewares.my-tls-client-cert.passTLSClientCert]
   [http.middlewares.my-tls-client-cert.passTLSClientCert.pem]
     pem = true
 
See Also: