Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket IO v3 - handshake auth field #266

Closed
LeoKuenne opened this issue Feb 21, 2022 · 4 comments
Closed

Socket IO v3 - handshake auth field #266

LeoKuenne opened this issue Feb 21, 2022 · 4 comments

Comments

@LeoKuenne
Copy link

LeoKuenne commented Feb 21, 2022

Since Socket IO v3 (SocketIO v3 Docs) there is an "auth" field in the handshake object. Authentication middleware on the server can use that field for authentication.

Is there any option to set that field on the initial request or any plans on implementing it?
I did not found any information or documentation on how to set that field.

I'm using the version 3.0.5 of this package.

handshake: {
  headers: {
    // [..] omitted for brevity
  },
  // [...] omitted for brevity
  url: '/socket.io/?EIO=4&transport=websocket',
  query: [Object: null prototype] { EIO: '4', transport: 'websocket' },
  auth: {} // <-- talking about that one
}
@doghappy
Copy link
Owner

Thanks for your feedback :)
7b34976

@LeoKuenne
Copy link
Author

You are welcome! What a quick response and implementation! :-))
Any plans on when to publish this to NuGet?

@doghappy
Copy link
Owner

doghappy commented Mar 5, 2022

Sorry, I can't decide on a specific release date yet (a lot of changes, I need more time to test it). I'll add a comment if it's released.

@doghappy
Copy link
Owner

released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants