Class ServerAuthenticationEntryPointFailureHandler

    • Constructor Detail

      • ServerAuthenticationEntryPointFailureHandler

        public ServerAuthenticationEntryPointFailureHandler​(ServerAuthenticationEntryPoint authenticationEntryPoint)
    • Method Detail

      • onAuthenticationFailure

        public reactor.core.publisher.Mono<java.lang.Void> onAuthenticationFailure​(WebFilterExchange webFilterExchange,
                                                                                   org.springframework.security.core.AuthenticationException exception)
        Description copied from interface: ServerAuthenticationFailureHandler
        Invoked when authentication attempt fails
        Specified by:
        onAuthenticationFailure in interface ServerAuthenticationFailureHandler
        Parameters:
        webFilterExchange - the exchange
        exception - the reason authentication failed
        Returns:
        a completion notification (success or error)
      • setRethrowAuthenticationServiceException

        public void setRethrowAuthenticationServiceException​(boolean rethrowAuthenticationServiceException)
        Set whether to rethrow AuthenticationServiceExceptions (defaults to false)
        Parameters:
        rethrowAuthenticationServiceException - whether to rethrow AuthenticationServiceExceptions
        Since:
        5.8