Skip to content

allow verifying the token against a JWKS #38

Open
@bsmedberg-xometry

Description

@bsmedberg-xometry

I'd like to add a feature to jwtinfo that allows specifying an optional JWKS URL to verify the token against.

Here's my thought about what it might look like: jwtinfo --jwks=https://mydomain.us.auth0.com/ <token>

There are a couple different ways you could handle output/validation errors:

  • no stdout, print error to stderr and exit with a non-zero code
  • print data to stdout even if the token is invalid, print error to stderr, exit with non-zero code
  • In combination with Allow dumping both header and body #37, extend the output format of the "full" output to include extra keys including valid: bool and validationErrors: str[]

@lmammino interested in your thoughts about whether you'd accept a PR, and suggestions for shaping a reasonable CLI surface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions