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
Post a Comment