We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
spring-security-messaging uses PathMatcher in two places:
spring-security-messaging
PathMatcher
SimpDestinationMessageMatcher
MessageMatcherDelegatingAuthorizationManager
MessageMatcherAuthorizationManagerConfiguration
To construct a PathPattern from a given pattern do:
PathPattern
PathPatternParser parser = PathPatternParser.defaultInstance; PathPattern pathPattern = parser.parse(pattern);
To compare a PathPattern to a message destination, do:
String destination = SimpMessageHeaderAccessor.getDestination(message.getHeaders()); PathContainer pathContainer = PathContainer.parsePath(destination); PathMatchInfo match = pathPattern.matchAndExtract(pathContainer);
Please take a look at PathPatternRequestMatcher for implementation guidance.
PathPatternRequestMatcher
The text was updated successfully, but these errors were encountered:
Hi @jzheaux, is this still up for grabs/not accounted for in the other mentioned issues? I'd like to work on it.
Sorry, something went wrong.
Hi, @pat-mccusker, yes, thanks for volunteering!
Add DestinationPathPatternMessageMatcher
de8c0ce
Closes spring-projectsgh-16500 Signed-off-by: Pat McCusker <[email protected]>
31b962b
jzheaux
pat-mccusker
Successfully merging a pull request may close this issue.
spring-security-messaging
usesPathMatcher
in two places:SimpDestinationMessageMatcher
should be deprecated and replacedMessageMatcherDelegatingAuthorizationManager
should deprecate and replace its use ofPathMatcher
MessageMatcherAuthorizationManagerConfiguration
should not retrieve and configuration aPathMatcher
To construct a
PathPattern
from a given pattern do:To compare a
PathPattern
to a message destination, do:Please take a look at
PathPatternRequestMatcher
for implementation guidance.The text was updated successfully, but these errors were encountered: