Description
In the Spring Framework Websockets documentation, there is a general section regarding authentication. However, there is no information about authorization. That led me to implement a custom ChannelInterceptor
to do authorization based on destinations.
Then, a colleague luckily pointed me to the fact that there is a Spring Security implementation for web sockets and separate documentation, and I could throw away my code (which is good in the end).
My proposal is to add a section about authorization to the Spring Framework Websockets section that explains shortly how this is done (using AbstractSecurityWebSocketMessageBrokerConfigurer
) or at least add a link to the Spring Security docs.
If this makes sense to you, I could also try to provide a PR. If you have suggestions (scope, location) for the PR, please let me know.
References: