Skip to content

AuthenticatedMatcher#withRoles should only check roles #17843

@jzheaux

Description

@jzheaux

Currently, AuthenticatedMatcher#withRoles checks all authorities in MvcResult.

It's semantics would be clearer if withRoles checked the ROLE_ authorities.

This will allow applications to test their RBAC rules without having to take into consideration unrelated authorities.

Metadata

Metadata

Assignees

Labels

in: testAn issue in spring-security-testtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions