Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It fails with encrypted JWT tokens #30

Open
lmammino opened this issue Sep 28, 2022 · 0 comments
Open

It fails with encrypted JWT tokens #30

lmammino opened this issue Sep 28, 2022 · 0 comments
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@lmammino
Copy link
Owner

jwtinfo currently fails with encrypted tokens. It should instead print a nicer message mentioning that the token is encrypted and therefore it is not possible to read the body.

An example of this kind of token is what's generated by AWS Cognito as a refresh token.

The header part looks like the following:

{
  "cty": "JWT",
  "enc": "A256GCM",
  "alg": "RSA-OAEP"
}

On possible solution is that the CLI should not try to parse the body as JSON if there is an enc field in the header.

@lmammino lmammino added bug Something isn't working enhancement New feature or request help wanted Extra attention is needed labels Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant