Skip to content

[Feat] Add JWT - #12

Merged
g41797 merged 3 commits into
g41797:mainfrom
ndrean:main
Dec 28, 2025
Merged

[Feat] Add JWT#12
g41797 merged 3 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

@g41797 Good, all passed again.

@g41797
g41797 merged commit 57df93c into g41797:main Dec 28, 2025
4 checks passed
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.

2 participants