Skip to content

[Feat] Add JWT support - #11

Closed
ndrean wants to merge 2 commits into
g41797:mainfrom
ndrean:main
Closed

[Feat] Add JWT support#11
ndrean wants to merge 2 commits into
g41797:mainfrom
ndrean:main

Conversation

@ndrean

@ndrean ndrean commented Dec 28, 2025

Copy link
Copy Markdown
Collaborator

In the NATS-client, it is just an extra field jwt, and a matter of not sending the publicKey recalculated because it is already contained in the JWT.

For testing, everything is in the CI workflow.
It uses nsc

  • setup an Oeprator
  • setup an Account
  • and use the MEMORY resolver
  • Then you can create a user dynamically signed by this Account, get the credentials (JWT and seed)
  • and execute the tests using the JWT and SEED (to sign the nonce sent by the server, who will read the publicKey from the JWT to verify thee JWT, so no need to pass the recomputed publicKey from the seed)

So it is mostly nats-server config.

@ndrean

ndrean commented Dec 28, 2025

Copy link
Copy Markdown
Collaborator Author

ah, I forgot to remove my working files.

@ndrean ndrean closed this Dec 28, 2025
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

Successfully merging this pull request may close these issues.

1 participant