-
Notifications
You must be signed in to change notification settings - Fork 116
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
uninitialized constant Doorkeeper::JWT::JWK in 1.8.4 #187
Comments
And with 1.8.3 it works? Could be related to #177 ? |
Yes, it works with 1.8.3. Downgrading back to that version fixes the issue. Yes, it looks related to #177. The comment here appears to be accurate. Our application does rely on |
Yeah so to fix it there are two ways:
|
I have the exact same issue but my project does not rely on
In my Gemfile I have: gem 'doorkeeper'
gem 'doorkeeper-jwt'
gem 'doorkeeper-openid_connect' All in the latest version. Gemfile.lock:
When I try to access the
I'm even using the config.jwt_jwk = JWT::JWK.new(
pk,
nil,
kid_generator: ::JWT::JWK::Thumbprint
) I also tried adding So the problem only happens inside this gem. Looks like a loading order problem, or something like that. |
Found the problem, PR to follow. |
@zavan your error is different. When you have the error it is searching for
:: to ensure it doesn't search for JWT in the same namespace (i.e. Doorkeeper ). This also explains why it works in the console.
Can you try changing that file and confirm if that does the trick? @brent-cybrid can you post the complete stacktrace? Want to make sure that it is the gem's absence and not something I missed. @nbulaj I think supporting both is another can of worms, which I find quite risky when it comes to security-related code like this. It's not even like we can specify the model the consumer would like to use, like https://doorkeeper.gitbook.io/guides/configuration/models, as the APIs are actually different. Thoughts? |
@kristof-mattei Yeah, I tested #188 and it worked. |
Released with |
I just upgraded to
doorkeeper-openid_connect
version 1.8.4 and my application is no longer running with the following error and stack trace:The text was updated successfully, but these errors were encountered: