简体   繁体   中英

override default authenticator provider in keycloak.x

I need to change the behavior of the default kerberos authenticator (because of the issue declared here: KEYCLOAK-19865 ).

I was hopping I could just create a new factory and use the existing ID:

public class CustomSpnegoAuthenticatorFactory implements AuthenticatorFactory, DisplayTypeAuthenticatorFactory {
    public static final String PROVIDER_ID = "auth-spnego"; // ID of the default provider SpnegoAuthenticatorFactory

And add the following line in my custom provider: META-INF/services/org.keycloak.authentication.AuthenticatorFactory

org.keycloak.authentication.authenticators.browser.CustomSpnegoAuthenticatorFactory

But the still the default provider is used. How can I override the default provider in keycloak.x?

You will have to use a custom ID and replace the authenticator in the authentication flow.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM