-
Notifications
You must be signed in to change notification settings - Fork 120
Stateless socket auth #517
Comments
Hi! I tried to implement this myself and it seemed to work, but I would like to make sure I did it right. I could make a pull request after your comments.
It works statefully with socketio from the client, if I call
Then from node I just add
That seemed to be enough for everything to work and I can use authenticated socket requests from node to do SSR. |
So, it's a bit more complicated than that. I had to also make sure to delete |
This has been done in Feathers v4 authentication. Please see the migration guide for more information. Closing this issue in order to archive this repository. Related issues can be opened at the new code location in the Feathers main repository. |
This would optionally make feathers-socketio work the same as feathers-rest. With REST calls, you pass the token in every request in a header. Socket requests don't send headers, but it would be nice to be able to pass a client param with an accessToken and have just that single request be authenticated. This would make WebSocket-based SSR much simpler.
The text was updated successfully, but these errors were encountered: