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

Allow passing of a JWS into jose.JWS.createVerify() #65

Closed
bifurcation opened this issue Jul 8, 2016 · 2 comments
Closed

Allow passing of a JWS into jose.JWS.createVerify() #65

bifurcation opened this issue Jul 8, 2016 · 2 comments

Comments

@bifurcation
Copy link
Contributor

Many times, I just want to know that a JWS verifies using the JWK in its "jwk" parameter. jose.JWS.createVerify() should be able to take a JWS and populate any "jwk" headers it finds into its keystore.

@linuxwolf
Copy link
Member

Instead of doing this on createVerify(), what if it used keys it found while processing in verify()? It seems to me that the ultimate goal is met, without substantially changing node-jose's flow.

@bifurcation
Copy link
Contributor Author

That would work for me.

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