ServerHttpBasicDsl

A Kotlin DSL to configure ServerHttpSecurity basic authorization using idiomatic Kotlin code.

Author

Eleftheria Stein

Since

5.4

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var authenticationEntryPoint: ServerAuthenticationEntryPoint?

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

Link copied to clipboard
var authenticationFailureHandler: ServerAuthenticationFailureHandler?
Link copied to clipboard
var authenticationManager: ReactiveAuthenticationManager?

the ReactiveAuthenticationManager used to authenticate.

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