Skip to content

Docs example uses access(String) with authorizeHttpRequests() #11280

@vbezhenar

Description

@vbezhenar

Documentation (Example 2) states that it's possible to write

http.authorizeHttpRequests(authorize ->
    authorize.mvcMatchers("/db/**").access("hasRole('ADMIN') and hasRole('DBA')")

but there's no access(String) method.

Here's my SO question with background information: https://stackoverflow.com/questions/72366267/matching-ip-address-with-authorizehttprequests

I'm using Spring Security 5.7.1.

Metadata

Metadata

Assignees

Labels

in: docsAn issue in Documentation or samplestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions