ServerFormLoginDsl

A Kotlin DSL to configure ServerHttpSecurity form login using idiomatic Kotlin code.

Author

Eleftheria Stein

Since

5.4

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var authenticationEntryPoint: ServerAuthenticationEntryPoint?

configures how to request for authentication.

Link copied to clipboard
var authenticationFailureHandler: ServerAuthenticationFailureHandler?

the ServerAuthenticationFailureHandler used to handle a failed authentication.

Link copied to clipboard
var authenticationManager: ReactiveAuthenticationManager?

the ReactiveAuthenticationManager used to authenticate.

Link copied to clipboard
var authenticationSuccessHandler: ServerAuthenticationSuccessHandler?

the ServerAuthenticationSuccessHandler used after authentication success.

Link copied to clipboard

the url to redirect to which provides a form to log in (i.e. "/login"). If this is customized:

Link copied to clipboard
var requiresAuthenticationMatcher: ServerWebExchangeMatcher?

configures when authentication is performed.

Link copied to clipboard
var securityContextRepository: ServerSecurityContextRepository?

the ServerSecurityContextRepository used to save the Authentication. For the SecurityContext to be loaded on subsequent requests the ReactorContextWebFilter must be configured to be able to load the value (they are not implicitly linked).

Functions

Link copied to clipboard
fun disable()

Disables HTTP basic authentication