AnonymousDsl

A Kotlin DSL to configure HttpSecurity anonymous authentication using idiomatic Kotlin code.

Author

Eleftheria Stein

Since

5.3

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var authenticationFilter: AnonymousAuthenticationFilter?

the AnonymousAuthenticationFilter used to populate an anonymous user.

Link copied to clipboard
var authenticationProvider: AuthenticationProvider?

the AuthenticationProvider used to validate an anonymous user

Link copied to clipboard
var authorities: List<GrantedAuthority>?

the Authentication.getAuthorities for anonymous users

Link copied to clipboard
var key: String?

the key to identify tokens created for anonymous authentication

Link copied to clipboard

the principal for Authentication objects of anonymous users

Functions

Link copied to clipboard
fun disable()

Disable anonymous authentication