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

Why not asymetric crypto? #34

Open
levino opened this issue Oct 21, 2016 · 1 comment
Open

Why not asymetric crypto? #34

levino opened this issue Oct 21, 2016 · 1 comment

Comments

@levino
Copy link

levino commented Oct 21, 2016

I dont get why you rely on a shared secret between SSO server and microservice. Why not use a private Key for the server and the according public key on the microservice?

@robertjd
Copy link
Contributor

Hi @levino , thanks for the question! The choice as actually up to you, this library supports shared keys, or public/private keys. Please take a look at this test to see how to do asymmetric with RSA:

https://github.com/jwtk/njwt/blob/master/test/rsa.js

Please let us know if this is what you're looking for?

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