Skip to content

Add hasAnyAuthority(String...) and hasAnyRole(String...) to authorizeRequests in Kotlin DSL #8892

@koishikawa11

Description

@koishikawa11

Expected Behavior

The Kotlin DSL has methods for conveniently specifying the access hasAuthority(String) and hasRole(String) in authorizeRequests.
I think it would be convenient to have method for hasAnyAuthority(String...) and hasAnyRole(String...).

Current Behavior

In the current version it is necessary to create access like "hasAnyAuthority('$anyAuthorities')".

Metadata

Metadata

Assignees

Labels

in: configAn issue in spring-security-configstatus: ideal-for-contributionAn issue that we actively are looking for someone to help us withtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions