HttpBasicDsl

A Kotlin DSL to configure HttpSecurity basic authentication 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, *>?

the custom AuthenticationDetailsSource to use for basic authentication.

Link copied to clipboard
var authenticationEntryPoint: AuthenticationEntryPoint?

the AuthenticationEntryPoint to be populated on BasicAuthenticationFilter in the event that authentication fails.

Link copied to clipboard

the HTTP Basic realm to use. If authenticationEntryPoint has been invoked, invoking this method will result in an error.

Functions

Link copied to clipboard
fun disable()

Disables HTTP basic authentication