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 together with JWT #17

Open
dowi opened this issue Feb 14, 2018 · 2 comments
Open

use together with JWT #17

dowi opened this issue Feb 14, 2018 · 2 comments

Comments

@dowi
Copy link

dowi commented Feb 14, 2018

Hi and thanks a lot

How to use this gem as a container to a JWT (e.g created with ruby-jwt)?
Should the JWT output of the ruby-jwt be the payload for the encrypt function?

Thanks a lot

@francescobbo
Copy link
Member

Hi @dowi, just as with any other medium, it's safer to sign first and use the result as the encryption payload, which is exactly what you suggest.

@excpt is way more well informed than me about the specs, he may have a better proposal ;)

@itay-grudev
Copy link

Furthermore it would be great that there is a way to include cty: 'JWT' as specified by: https://www.rfc-editor.org/rfc/rfc7519.html#section-5.2

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

3 participants