Class AllowAccessAuthenticator

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

    public class AllowAccessAuthenticator
    extends Object
    implements org.keycloak.authentication.Authenticator
    Authenticator will always successfully authenticate. Useful for example in the conditional flows to be used after satisfying the previous conditions.
    Author:
    Martin Bartos
    • Constructor Detail

      • AllowAccessAuthenticator

        public AllowAccessAuthenticator()
    • Method Detail

      • authenticate

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

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

        public boolean requiresUser()
        Specified by:
        requiresUser in interface org.keycloak.authentication.Authenticator
      • 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
      • close

        public void close()
        Specified by:
        close in interface org.keycloak.provider.Provider