Class SpnegoAuthenticator
- java.lang.Object
-
- org.keycloak.authentication.AbstractFormAuthenticator
-
- org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
-
- org.keycloak.authentication.authenticators.browser.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 Summary
Fields Modifier and Type Field Description static boolean
bypassChallengeJavascript
static String
KERBEROS_DISABLED
-
Fields inherited from class org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
ATTEMPTED_USERNAME, REGISTRATION_FORM_ACTION, USER_SET_BEFORE_USERNAME_PASSWORD_AUTH
-
-
Constructor Summary
Constructors Constructor Description SpnegoAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
action(org.keycloak.authentication.AuthenticationFlowContext context)
void
authenticate(org.keycloak.authentication.AuthenticationFlowContext context)
void
close()
boolean
configuredFor(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user)
protected javax.ws.rs.core.Response
optionalChallengeRedirect(org.keycloak.authentication.AuthenticationFlowContext context, String negotiateHeader)
401 challenge sent back that bypassesboolean
requiresUser()
void
setRequiredActions(org.keycloak.models.KeycloakSession session, org.keycloak.models.RealmModel realm, org.keycloak.models.UserModel user)
-
Methods inherited from class org.keycloak.authentication.authenticators.browser.AbstractUsernameFormAuthenticator
challenge, challenge, createLoginForm, disabledByBruteForceError, disabledByBruteForceFieldError, dummyHash, enabledUser, getDefaultChallengeMessage, isDisabledByBruteForce, isUserAlreadySetBeforeUsernamePasswordAuth, runDefaultDummyHash, setDuplicateUserChallenge, testInvalidUser, validatePassword, validateUser, validateUserAndPassword
-
-
-
-
Field Detail
-
KERBEROS_DISABLED
public static final String KERBEROS_DISABLED
- See Also:
- Constant Field Values
-
bypassChallengeJavascript
public static boolean bypassChallengeJavascript
-
-
Method Detail
-
requiresUser
public boolean requiresUser()
- Specified by:
requiresUser
in interfaceorg.keycloak.authentication.Authenticator
-
action
public void action(org.keycloak.authentication.AuthenticationFlowContext context)
- Specified by:
action
in interfaceorg.keycloak.authentication.Authenticator
- Overrides:
action
in classAbstractUsernameFormAuthenticator
-
authenticate
public void authenticate(org.keycloak.authentication.AuthenticationFlowContext context)
- Specified by:
authenticate
in interfaceorg.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 interfaceorg.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 interfaceorg.keycloak.authentication.Authenticator
-
close
public void close()
- Specified by:
close
in interfaceorg.keycloak.provider.Provider
- Overrides:
close
in classAbstractFormAuthenticator
-
-