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

JWT::JWK::EC needs require 'forwardable' #392

Closed
mengkuan opened this issue Dec 15, 2020 · 2 comments · Fixed by #408
Closed

JWT::JWK::EC needs require 'forwardable' #392

mengkuan opened this issue Dec 15, 2020 · 2 comments · Fixed by #408

Comments

@mengkuan
Copy link

mengkuan commented Dec 15, 2020

Using ruby 2.7.1 and trunk version of jwt (dc946fa), I get the following error when trying to verify a token:

lib/jwt/jwk/ec.rb:6:in `<class:EC>': uninitialized constant JWT::JWK::EC::Forwardable (NameError)

Adding require 'forwardable' to the top of ec.rb resolves this.

@mengkuan mengkuan changed the title JWT::JWK::EC needs `require 'forwardable' JWT::JWK::EC needs require 'forwardable' Dec 15, 2020
@anakinj
Copy link
Member

anakinj commented Dec 15, 2020

Thanks for the report.

There are some changes to the new algorithms (EC and HMAC) in the making, this also removes the dependency to the forwardable module.

It is all baked into this one PR: #388

@mengkuan
Copy link
Author

I see. In this case I'll close this ticket. Thanks!

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 a pull request may close this issue.

2 participants