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

Enable @path syntax #9

Merged
merged 3 commits into from
Jan 10, 2019
Merged

Conversation

hughsimpson
Copy link
Contributor

Enable -S @./path_to_key syntax

This makes it possible to use jwt-cli for SHA256 (and other SHA algorithms) by passing references to .der files

e.g.

    MY_JWT=$(jwt encode -A RS256 -S @./private_key.der '{"field":"value"}')
    jwt decode -A RS256 -S @./public_key.der $MY_JWT

will now work

Hugh Simpson added 3 commits January 10, 2019 14:52
This makes it possible to use jwt-cli for SHA256 (and other SHA
algorithms) by passing references to .der files

E.g.
MY_JWT=$(jwt encode -A RS256 -S @./private_key.der '{"field":"value"}')
jwt decode -A RS256 -S @./public_key.der $MY_JWT

will now work
@mike-engel mike-engel merged commit 2dae4b8 into mike-engel:master Jan 10, 2019
@mike-engel
Copy link
Owner

@hughsimpson I love this PR! Thanks so much for doing the work and adding tests 😄 This has been released as 2.3.0, and if you're using homebrew it should now be available through brew upgrade mike-engel/jwt-cli/jwt-cli.

@hughsimpson hughsimpson deleted the enable_@PATH_syntax branch January 11, 2019 09:54
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.

None yet

2 participants