Interface AuthenticationResultHandler

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    StandardAuthenticationHandlers
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Order(0)
    @FunctionalInterface
    public interface AuthenticationResultHandler
    extends Serializable
    A handler that will be notified with the result once a login attempt has completed. Only called as part of standard authentication.
    • Method Detail

      • handleAuthenticationResult

        boolean handleAuthenticationResult​(AuthenticationResult result)
        Called with the result of the authentication attempt.
        Parameters:
        result - the authentication result
        Returns:
        whether the result should be considered handled and no further handler should be consulted; this can also prevent the default navigation after successfully logging in when on the login view