-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: docsAn issue in Documentation or samplesAn issue in Documentation or samplestype: bugA general bugA general bug
Milestone
Description
Summary
The documentation uses the wrong wildcard in the example for allowing users to subscribe to '/user/' sockets.
Actual Behavior
The docs use a single '*' instead of '**' to wildcard:
The java example is incorrect:
@Configuration public class WebSocketSecurityConfig extends AbstractSecurityWebSocketMessageBrokerConfigurer { protected void configureInbound(MessageSecurityMetadataSourceRegistry messages) { messages .simpDestMatchers("/user/*").authenticated() } }
Expected Behavior
The correct '**' wildcard is shown in the same docs in the xml example:
<websocket-message-broker> <intercept-message pattern="/user/**" access="hasRole('USER')" /> </websocket-message-broker>
Configuration
Version
Current
Sample
Metadata
Metadata
Assignees
Labels
in: docsAn issue in Documentation or samplesAn issue in Documentation or samplestype: bugA general bugA general bug