Open
Description
Describe the bug
The "Real World Example" for a Kotlin Spring Security configuration contains a call to (AuthorizeHttpRequestsDsl::
)authorize
which is given an array of strings, but this signature doesn't exist, so it won't compile.
To Reproduce
Set up a Kotlin + Spring project with a security configuration and copy the "Real World Example" from the docs:
@Bean
open fun defaultSecurityFilterChain(http: HttpSecurity): SecurityFilterChain {
val allowedPaths = arrayOf("/", "/user-login", "/user-logout", "/notices", "/contact", "/register")
http {
authorizeHttpRequests {
authorize(allowedPaths, permitAll)
authorize(anyRequest, authenticated)
}
...
Expected behavior
Either the signature exists or the documentation doesn't mention it.