Add hasAnyAuthority(String...) and hasAnyRole(String...) to authorizeRequests in Kotlin DSL #8892
Labels
in: config
An issue in spring-security-config
status: ideal-for-contribution
An issue that we actively are looking for someone to help us with
type: enhancement
A general enhancement
Milestone
Expected Behavior
The Kotlin DSL has methods for conveniently specifying the access
hasAuthority(String)
andhasRole(String)
inauthorizeRequests
.I think it would be convenient to have method for
hasAnyAuthority(String...)
andhasAnyRole(String...)
.Current Behavior
In the current version it is necessary to create access like
"hasAnyAuthority('$anyAuthorities')"
.The text was updated successfully, but these errors were encountered: