ServerHttpSecurityDsl
A ServerHttpSecurity Kotlin DSL created by http { } in order to configure ServerHttpSecurity using idiomatic Kotlin code.
Author
Eleftheria Stein
Since
5.4
Parameters
the configurations to apply to the provided ServerHttpSecurity
Properties
Functions
Adds a WebFilter after specific position.
Adds a WebFilter at a specific position.
Adds a WebFilter before specific position.
Enables and configures anonymous authentication.
Allows restricting access based upon the ServerWebExchange
Allows configuring CORS.
Enables CSRF protection.
Allows configuring exception handling.
Enables form based authentication.
Allows configuring response headers.
Enables HTTP basic authentication.
Provides logout support.
Configures OAuth2 client support.
Configures authentication support using an OAuth 2.0 and/or OpenID Connect 1.0 Provider. A ReactiveClientRegistrationRepository is required and must be registered as a Bean or configured via ServerOAuth2LoginDsl.clientRegistrationRepository.
Configures OAuth2 resource server support.
Configures logout support using an OpenID Connect 1.0 Provider. A ReactiveClientRegistrationRepository is required and must be registered as a Bean or configured via ServerOidcLogoutDsl.clientRegistrationRepository.
Configures One-Time Token Login support.
Enables password management.
Allows configuring HTTPS redirection rules.
Allows configuring request cache which is used when a flow is interrupted (i.e. due to requesting credentials) so that the request can be replayed after authentication.
Allows configuring the ServerHttpSecurity to only be invoked when matching the provided ServerWebExchangeMatcher.
Configures Session Management support.
Adds X509 based pre authentication to an application using a certificate provided by a client.