HttpSecurityDsl
An HttpSecurity Kotlin DSL created by http { } in order to configure HttpSecurity using idiomatic Kotlin code.
Author
Eleftheria Stein
Since
5.3
Parameters
the HttpSecurity which all configurations will be applied to
the configurations to apply to the provided HttpSecurity
Functions
Adds the Filter after the location of the specified Filter class. Variant that is leveraging Kotlin reified type parameters.
Adds the Filter after the location of the specified Filter class.
Adds the Filter at the location of the specified Filter class. Variant that is leveraging Kotlin reified type parameters.
Adds the Filter at the location of the specified Filter class.
Adds the Filter before the location of the specified Filter class. Variant that is leveraging Kotlin reified type parameters.
Adds the Filter before the location of the specified Filter class.
Allows configuring how an anonymous user is represented.
Allows restricting access based upon the HttpServletRequest
Allows configuring exception handling.
Enables form based authentication.
Allows configuring response headers.
Enables HTTP basic authentication.
Configures OAuth 2.0 client support.
Configures authentication support using an OAuth 2.0 and/or OpenID Connect 1.0 Provider. A ClientRegistrationRepository is required and must be registered as a Bean or configured via OAuth2LoginDsl.clientRegistrationRepository
Configures OAuth 2.0 resource server support.
Configures OIDC 1.0 logout support.
Configures One-Time Token Login Support.
Enables password management.
Allows configuring a port mapper.
Configures channel security. In order for this configuration to be useful at least one mapping to a required channel must be provided.
Configures Remember Me authentication.
Enables request caching. Specifically this ensures that requests that are saved (i.e. after authentication is required) are later replayed.
Allows configuring channel security based upon the HttpServletRequest
Configures authentication support using a SAML 2.0 Service Provider. A RelyingPartyRegistrationRepository is required and must be registered with the ApplicationContext or configured via Saml2Dsl.relyingPartyRegistrationRepository
Configures logout support for a SAML 2.0 Service Provider.
Configures a SAML 2.0 relying party metadata endpoint.
Enables security context configuration.
Allows configuring the HttpSecurity to only be invoked when matching the provided pattern. If Spring MVC is on the classpath, it will use an MVC matcher. If Spring MVC is not an the classpath, it will use an ant matcher.
Allows configuring the HttpSecurity to only be invoked when matching the provided RequestMatcher.
Allows configuring session management.
Enable WebAuthn configuration.