Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Shiro could add some support for spring websockets.
<websocket:handlers> <websocket:mapping path="/ws" handler="wsHandler"/> <websocket:handshake-interceptors> <bean class="org.apache.shiro.somepackage.WebsocketSecurityInterceptor"></bean> </websocket:handshake-interceptors> </websocket:handlers>
This security interceptor could do two things by overriding the beforeHandshake method:
- Decide whether or not the user can open the websocket
- Set authentication information in the socket attributes