angular-websocket icon indicating copy to clipboard operation
angular-websocket copied to clipboard

[feature request] JWT token authentication

Open oharlem opened this issue 8 years ago • 3 comments

Please consider this to be a feature request. I'm using Angular with JWT tokens ( https://github.com/auth0/angular-jwt ) and JWT injector is not working with angular-websocket.

oharlem avatar Jan 19 '16 15:01 oharlem

Cant you put it into your url? $websocket('wss://serveraddresswebsocket?token='+jwtToken ?

germanoroettgers avatar Jun 08 '16 21:06 germanoroettgers

+1

ashishtilara avatar Jun 20 '16 05:06 ashishtilara

With PR #107 you should be able to pass an Authorization header as an additional option to the underlying ws library.

el-chogo avatar Oct 21 '16 07:10 el-chogo