Class SpnegoAuthenticator

  • All Implemented Interfaces:
    org.keycloak.authentication.Authenticator, org.keycloak.provider.Provider

    public class SpnegoAuthenticator
    extends AbstractUsernameFormAuthenticator
    implements org.keycloak.authentication.Authenticator
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Field Detail

      • bypassChallengeJavascript

        public static boolean bypassChallengeJavascript
    • Constructor Detail

      • SpnegoAuthenticator

        public SpnegoAuthenticator()
    • Method Detail

      • requiresUser

        public boolean requiresUser()
        Specified by:
        requiresUser in interface org.keycloak.authentication.Authenticator
      • action

        public void action​(org.keycloak.authentication.AuthenticationFlowContext context)
        Specified by:
        action in interface org.keycloak.authentication.Authenticator
        Overrides:
        action in class AbstractUsernameFormAuthenticator
      • authenticate

        public void authenticate​(org.keycloak.authentication.AuthenticationFlowContext context)
        Specified by:
        authenticate in interface org.keycloak.authentication.Authenticator
      • optionalChallengeRedirect

        protected javax.ws.rs.core.Response optionalChallengeRedirect​(org.keycloak.authentication.AuthenticationFlowContext context,
                                                                      String negotiateHeader)
        401 challenge sent back that bypasses
        Parameters:
        context -
        negotiateHeader -
        Returns:
      • configuredFor

        public boolean configuredFor​(org.keycloak.models.KeycloakSession session,
                                     org.keycloak.models.RealmModel realm,
                                     org.keycloak.models.UserModel user)
        Specified by:
        configuredFor in interface org.keycloak.authentication.Authenticator
      • setRequiredActions

        public void setRequiredActions​(org.keycloak.models.KeycloakSession session,
                                       org.keycloak.models.RealmModel realm,
                                       org.keycloak.models.UserModel user)
        Specified by:
        setRequiredActions in interface org.keycloak.authentication.Authenticator