FormLoginDsl

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

Author

Eleftheria Stein

Since

5.3

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var authenticationDetailsSource: AuthenticationDetailsSource<HttpServletRequest, *>?
Link copied to clipboard
var authenticationFailureHandler: AuthenticationFailureHandler?

the AuthenticationFailureHandler used after authentication failure

Link copied to clipboard
var authenticationSuccessHandler: AuthenticationSuccessHandler?

the AuthenticationSuccessHandler used after authentication success

Link copied to clipboard

the URL to send users if authentication fails

Link copied to clipboard

the login page to redirect to if authentication is required (i.e. "/login")

Link copied to clipboard

the URL to validate the credentials

Link copied to clipboard

the HTTP parameter to look for the password when performing authentication

Link copied to clipboard

whether to grant access to the urls for failureUrl as well as for the HttpSecurityBuilder, the loginPage and loginProcessingUrl for every user

Link copied to clipboard

the HTTP parameter to look for the username when performing authentication

Functions

Link copied to clipboard
fun defaultSuccessUrl(defaultSuccessUrl: String, alwaysUse: Boolean)

Specifies where users will be redirected after authenticating successfully if they have not visited a secured page prior to authenticating or alwaysUse is true.

Link copied to clipboard
fun disable()

Disable FormLogin.

Link copied to clipboard
fun permitAll()

Grants access to the urls for failureUrl as well as for the HttpSecurityBuilder, the loginPage and loginProcessingUrl for every user.