Skip to content

AuthorizeHttpRequestsConfigurer#XXXrole methods should ensure the role does not begin with the role prefix #12581

@jzheaux

Description

@jzheaux

Similar to how User.UserBuilder works, configuration should fail if configurations like the following are attempted:

hasRole('ROLE_USER')
hasAnyRole('ROLE_USER')

Otherwise, scenarios like this SO question crop up.

Metadata

Metadata

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

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions