playframework - Play2 Framework - Scala - Silhouette check token manually -


i'm using play framework scala build restful api. implement authentication i'm using play-silhouette plugin, use of bearertokenauthenticator. works perfectly.

the problem must implement service use websocket push real-time updates, can't manage setup user authentication method.

silhouette provides support (doc), problem can't find way put token in header of websocket handshake requests. did lot of research, without result.

i thought pass token in query string, instead of passing in request header.

my question is, how can validate token manually silhouette?

this not possible. i've created issue fix of request extractor.

in meantime override retrieve method of bearertokenauthenticatorservice , use value query string instead of header.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -