Override default Keycloak provider

Hi, following provider:

org.keycloak.headers.SecurityHeadersProviderFactory

has implementation set as

org.keycloak.headers.DefaultSecurityHeadersProviderFactory

Is there a way I can override this class and use my own custom implementation for it?

Maybe you can try extending keycloak like Keycloak-FranceConnect and keycloak-discord

keycloak has no good documentation, so you may need to try it for a while

I had to do a similar thing recently. I read to use the same provider ID like the Factory to replace. It worked instantly…

1 Like

OMG this! Thanks a lot. Didn’t know that if you use the same ID you effectively override the default provider