Skip to content

requestMatchers does not execute .permitAll() for not registered Bean #12586

@rnjsrntkd95

Description

@rnjsrntkd95

Describe the bug
version

  • spring boot 3.0.1
  • spring security 6.0.1

not execute .permitAll()
just not registered controller.

To Reproduce
image
requestMatchers dose not execute .permitAll().
localhost:8080/data request response is 403 forbidden.
("/data" URL is not mvcMatcher, not registered controller API)

image
but, all include matcher ("/**") execute .permitAll().

Expected behavior

    .authorizeHttpRequests(authorize -> authorize
            .requestMatchers("/data").permitAll()
    )

localhost:8080/data request expected 404 Not Found;

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions