Skip to content

Pre-shared key #117

Open
Open
@zsolt777

Description

@zsolt777

Hi @jchristn!

Thank you again for this great library!

Could you tell me please the exact purpose of the pre-shared key? As I can see it is some kind of authentication, as its name implies, right?

  • If that is the case then I wonder why is it limited to 16 bytes?
  • As I can see currently the server can handle just one PSK/server. At server side it could be a ConcurrentDictionary instead of a string, to allow the server to handle many PSKs simultaneously and safely.

If both of the above would be implemented, then it could be used to authenticate users very easily with JWT tokens, or any other kind of tokens, keys.

...or if at the server side there would be a "custom client PSK validator event" when client sends the PSK, then it would be easy to implement JWT validator, or any other login mechanism.

What do you think?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions