Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-620

authentication and authorization support for spring websocket

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            kocka Laszlo Hornyak
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: