RememberMeDsl

A Kotlin DSL to configure HttpSecurity Remember me using idiomatic Kotlin code.

Author

Ivan Pavlov

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

whether the cookie should always be created even if the remember-me parameter is not set. Defaults to false

Link copied to clipboard
var authenticationSuccessHandler: AuthenticationSuccessHandler?

the AuthenticationSuccessHandler used after authentication success

Link copied to clipboard
var key: String?

the key to identify tokens

Link copied to clipboard

the domain name within which the remember me cookie is visible

Link copied to clipboard

the name of cookie which store the token for remember me authentication. Defaults to 'remember-me'

Link copied to clipboard

the HTTP parameter used to indicate to remember the user at time of login. Defaults to 'remember-me'

Link copied to clipboard
var rememberMeServices: RememberMeServices?

the RememberMeServices to use

Link copied to clipboard
var tokenRepository: PersistentTokenRepository?

the PersistentTokenRepository to use. Defaults to org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices instead

Link copied to clipboard

how long (in seconds) a token is valid for. Defaults to 2 weeks

Link copied to clipboard
var userDetailsService: UserDetailsService?

the UserDetailsService used to look up the UserDetails when a remember me token is valid

Link copied to clipboard

whether the cookie should be flagged as secure or not