AuthorizeHttpRequestsDsl
A Kotlin DSL to configure HttpSecurity request authorization using idiomatic Kotlin code.
Author
Yuriy Savchenko
Since
5.7
Properties
Functions
Adds a request authorization rule for an endpoint matching the provided pattern. If Spring MVC is on the classpath, it will use an MVC matcher. If Spring MVC is not on the classpath, it will use an ant matcher. The MVC will use the same rules that Spring MVC uses for matching. For example, often times a mapping of the path "/path" will match on "/path", "/path/", "/path.html", etc. If the current request will not be processed by Spring MVC, a reasonable default using the pattern as an ant pattern will be used.
Adds a request authorization rule.
Specify that URLs require any of the provided authorities.
Specify that URLs require any of the provided roles.
Specify that URLs require any of the provided authorities.
Specify that URLs require any of the provided roles.
Specify that URLs require a particular authority.
Require a specific IP or range of IP addresses.