mardi 9 juin 2015

Websocket (java ee) how to get role of current user

I just added a Websocket endpoint to my java ee jax-rs application. Within Jax-Rs endpoints i can access the role of the user via SecurityContext.

But within websocket i can't inject context stuff. So how to know the role of the user that tries to open a websocket session?

Aucun commentaire:

Enregistrer un commentaire