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

Use rsa pub and private keys for jwt #866

Closed
adred opened this issue Mar 1, 2017 · 1 comment
Closed

Use rsa pub and private keys for jwt #866

adred opened this issue Mar 1, 2017 · 1 comment

Comments

@adred
Copy link

adred commented Mar 1, 2017

I don't entirely understand how JWT works yet but I noticed that Echo middleware for JWT only uses one key(I assume for both generation and validation). However, github.com/SermoDigital/jose encourages us to use rsa private key for generating token and rsa pub key for validating token. Should I be concerned that Echo's implementation is different? I have Echo jwt integrated and working in my app but I kinda feel it should follow jose specifications. Someone created examples here: https://gist.github.com/nanoninja/50e56791d13d340068ccf4f6c810dbf7

Thoughts?

@adred adred closed this as completed Mar 1, 2017
@benbjurstrom
Copy link

See #633 for a JWT middleware example using the RS256 algorithm.

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

No branches or pull requests

2 participants