[GH-ISSUE #1953] Socket.io auth #625

Closed
opened 2026-03-16 16:25:21 +03:00 by kerem · 9 comments
Owner

Originally created by @ghost on GitHub (Nov 15, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1953

It would be awesome to set a bearer token on a socket.io request just like you can do it on a rest request.

Originally created by @ghost on GitHub (Nov 15, 2021). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1953 It would be awesome to set a bearer token on a socket.io request just like you can do it on a rest request.
kerem 2026-03-16 16:25:21 +03:00
Author
Owner

@nobelion158 commented on GitHub (Nov 28, 2021):

I am willing to contribute to this, but not sure how to do.
I will try if someone can point me how

<!-- gh-comment-id:981118178 --> @nobelion158 commented on GitHub (Nov 28, 2021): I am willing to contribute to this, but not sure how to do. I will try if someone can point me how
Author
Owner

@GeneralChauhan commented on GitHub (Dec 3, 2021):

can you tell me how to get started with it?

<!-- gh-comment-id:985804358 --> @GeneralChauhan commented on GitHub (Dec 3, 2021): can you tell me how to get started with it?
Author
Owner

@liyasthomas commented on GitHub (Dec 4, 2021):

This thread could be a good starting point

<!-- gh-comment-id:985944744 --> @liyasthomas commented on GitHub (Dec 4, 2021): [This thread could be a good starting point](https://stackoverflow.com/questions/36788831/authenticating-socket-io-connections-using-jwt)
Author
Owner

@rakshit087 commented on GitHub (Dec 25, 2021):

@PortStone can you please share a SocketIO url with bearer I am working on this feature, but unable to test it.

<!-- gh-comment-id:1001070451 --> @rakshit087 commented on GitHub (Dec 25, 2021): @PortStone can you please share a SocketIO url with bearer I am working on this feature, but unable to test it.
Author
Owner

@ghost commented on GitHub (Dec 27, 2021):

@PortStone can you please share a SocketIO url with bearer I am working on this feature, but unable to test it.

Yes, I am working on it.

<!-- gh-comment-id:1001679876 --> @ghost commented on GitHub (Dec 27, 2021): > @PortStone can you please share a SocketIO url with bearer I am working on this feature, but unable to test it. Yes, I am working on it.
Author
Owner

@rakshit087 commented on GitHub (Dec 27, 2021):

@PortStone can you please share a SocketIO url with bearer I am working on this feature, but unable to test it.

Yes, I am working on it.

PR? or Token?

<!-- gh-comment-id:1001680258 --> @rakshit087 commented on GitHub (Dec 27, 2021): > > @PortStone can you please share a SocketIO url with bearer I am working on this feature, but unable to test it. > > Yes, I am working on it. PR? or Token?
Author
Owner

@ghost commented on GitHub (Dec 27, 2021):

@PortStone can you please share a SocketIO url with bearer I am working on this feature, but unable to test it.

Yes, I am working on it.

PR? or Token?

Token so you can test it out.

<!-- gh-comment-id:1001778050 --> @ghost commented on GitHub (Dec 27, 2021): > > > @PortStone can you please share a SocketIO url with bearer I am working on this feature, but unable to test it. > > > > > > Yes, I am working on it. > > PR? or Token? Token so you can test it out.
Author
Owner

@ghost commented on GitHub (Dec 28, 2021):

I have made a simple Node.js server that won't accept your socket connection unless you are authorized. It will work if you send a bearer token: Authorization: Bearer password. You should now be able to test it out.

https://github.com/PortStone/socketio-test

<!-- gh-comment-id:1002268956 --> @ghost commented on GitHub (Dec 28, 2021): I have made a simple Node.js server that won't accept your socket connection unless you are authorized. It will work if you send a bearer token: `Authorization: Bearer password`. You should now be able to test it out. https://github.com/PortStone/socketio-test
Author
Owner

@rakshit087 commented on GitHub (Dec 29, 2021):

Great Thank you so much!

<!-- gh-comment-id:1002410265 --> @rakshit087 commented on GitHub (Dec 29, 2021): Great Thank you so much!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#625
No description provided.