Skip to content

Documentation: Where can I find the JWT reference? #199

@marcusirgens

Description

@marcusirgens

I'm currently integrating with NATS and am trying to find a reference that describes the JWTs used throughout the system.

  • There is some information on the website under the "Basics" page for the nsc tool, but it does not describe the fields on the JTWs.

  • The Decentralized JWT Authentication/Authorization page links to the Nkey reference, the Ed25519 reference, the nsc tool, the "basics" page, and the "In Depth Guide":

  • The In Depth Guide is over 90 000 characters of text in tutorial format, but as far as I can tell, it does not describe the "schema" used.

    As an aside, it does say this:

    The NATS JWT library on the other hand is written in Go. This may not be your language of choice.

    While Go is my language of choice, it is not what I'm currently using for this project, and I'd rather not exec the nsc binary to create JWTs.

There is some more information spread around on the website, but I am really struggling to find a definitive reference that describes the capabilities of the JWTs in a non-walkthrough format that exhaustively lists the fields that I can, should or must use to identify users, operators, accounts, etc., and I find my self trying to decipher various implementations, hoping that the struct I bumped into in one of the nats-io repositories is "the right one".

I know my experience is a single data point, but I'm frustrated by this. The NATS protocol, tooling and server technology is fascinating and appealing, but the lack of technical documentation in the form of specifications and reference documents is causing me a lot of friction.

Have I missed something? Is this documentation available somewhere, or am I simply not expected to create credentials using other tools than the nsc tool?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions