postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

Support Socket.io `auth` object

Open elton-okawa opened this issue 2 years ago • 5 comments

Is there an existing request for this feature?

  • [X] I have searched the existing issues for this feature request and I know that duplicates will be closed

Is your feature request related to a problem?

Socket.IO docs v3+ suggest using auth object on client to send credentials that can be accessed on server like socket.handshake.auth.token

On Postman App v10.10.9 I didn't find any way to send this value using Socket.IO WebSocket request

Describe the solution you'd like

Alternatives:

  1. A special tab Auth like Headers or Params
  2. A new field on Settings tab that allows configuring the auth.token value

I'd be amazing if the new field supports the parameters replacement like {{token}}

Describe alternatives you've considered

I've considered:

  1. Sending auth token as query param or header and adjust the server to get the token value there. It might work, but it's not the ideal solution because it changes the server implementation to facilitate local testing and do not follow the Socket.IO official docs suggestion (using the auth object on client).
  2. Using Postman "pure" WebSocket Request as suggested in Socket.IO GitHub discussion: https://github.com/socketio/socket.io/discussions/4072#discussioncomment-1275380. It doesn't require any changes on server but we lose Postman exclusive features on Socket.IO WebSocket Request

Additional context

No response

elton-okawa avatar Mar 04 '23 13:03 elton-okawa

Really needed :(

Sergei8888 avatar Jun 17 '23 13:06 Sergei8888

implementing this would be great +1

hitmands avatar Sep 15 '23 13:09 hitmands

I don't have no problem and take this seriously. Just give me some time.

Krsudwa avatar Sep 15 '23 14:09 Krsudwa

Really needed. It would be great if this was implemented

IbrohimIsroilov avatar Dec 20 '23 05:12 IbrohimIsroilov

any updates on this?

bneigher avatar Jul 10 '24 00:07 bneigher

@codenirvana Any updates, would love to see this implemented.

vivek-pinnacleworks avatar Oct 25 '24 08:10 vivek-pinnacleworks

Since the functionality has not been implemented yet, is there a way to send the auth?

DarkzyRB avatar Mar 02 '25 17:03 DarkzyRB

Anything on this???

dennisofficial avatar Apr 17 '25 20:04 dennisofficial

Just switched my auth to handshake token and all my postman socketio tabs broke, any updates on this??

Mottoweb avatar May 16 '25 14:05 Mottoweb

Any update on this? Really needed.

MJChimal avatar Sep 03 '25 18:09 MJChimal

I would also like to have this option.

greenbea avatar Sep 09 '25 21:09 greenbea