-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify Java Configuration RequestMatcher Usage #11347
Labels
Milestone
Comments
rwinch
added
in: config
An issue in spring-security-config
type: enhancement
A general enhancement
labels
Jun 7, 2022
I can take this. |
@evgeniycheban Thank you for the volunteering. This is going to be a pretty tricky issue with quite a bit of design necessary. For that reason, I'm not sure if it is an ideal for contribution issue. |
This was referenced Sep 22, 2022
marcusdacoregio
changed the title
Support RequestMatcher Validation
Make it easier to configure the right RequestMatcher in the DSL
Oct 3, 2022
marcusdacoregio
changed the title
Make it easier to configure the right RequestMatcher in the DSL
Simplify Java Configuration RequestMatcher Usage
Oct 3, 2022
marcusdacoregio
added a commit
to marcusdacoregio/spring-security
that referenced
this issue
Oct 3, 2022
If Spring MVC is present in the classpath, use MvcRequestMatcher by default. This commit also adds a new securityMatcher method in HttpSecurity Closes spring-projectsgh-11347 Closes spring-projectsgh-9159
This was referenced Oct 3, 2022
Repository owner
moved this from In Progress
to Done
in Spring Security Team
Oct 3, 2022
marcusdacoregio
added a commit
that referenced
this issue
Oct 4, 2022
marcusdacoregio
added a commit
to marcusdacoregio/spring-security
that referenced
this issue
Oct 4, 2022
marcusdacoregio
added a commit
that referenced
this issue
Oct 4, 2022
marcusdacoregio
added a commit
that referenced
this issue
Oct 5, 2022
marcusdacoregio
added a commit
that referenced
this issue
Oct 6, 2022
marcusdacoregio
added a commit
that referenced
this issue
Oct 6, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
By default, we should reject using the built in RequestMatcher implementations other than MvcRequestMatcher in a MvcRequestMatcher application.
Alternatively we can deprecate/remove antMatcher, regexMatchers, and mvcMatchers from the DSL and have a requestMatcher that is automatic based on the classpath. Users that want to opt out of this would need to use
requestMatchers(new RegExRequestMatcher(...))
. This makes it much more difficult to get the wrong configuration.The text was updated successfully, but these errors were encountered: