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

Error during token revocation #1

Open
kimburgess opened this issue Oct 24, 2019 · 0 comments
Open

Error during token revocation #1

kimburgess opened this issue Oct 24, 2019 · 0 comments

Comments

@kimburgess
Copy link

Token revocation currently results in a 500 error due to an incompatibility between the default ActiveRecord ORM and this lib.

Started POST "/auth/oauth/revoke" for 172.31.231.5 at 2019-10-24 12:00:21 +1100
Cannot render console from 10.0.2.2! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by Doorkeeper::TokensController#revoke as */*
  Parameters: {"token"=>"521c207475c5fbe2b3076e5659f758cc46132eace8623f41597680959eff7b05"}
Completed 500 Internal Server Error in 87ms



NoMethodError (undefined method `application_id?' for #<Doorkeeper::AccessToken:0x00005563aba22b78>
Did you mean?  application_id
               application_id=
               application
               application=):

activemodel (5.2.3) lib/active_model/attribute_methods.rb:430:in `method_missing'
doorkeeper (4.4.3) app/controllers/doorkeeper/tokens_controller.rb:64:in `authorized?'
doorkeeper (4.4.3) app/controllers/doorkeeper/tokens_controller.rb:20:in `revoke'

The request path for this involves a call to an attribute query method, here. This is not currently supported by the corresponding instance provided by this lib.

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

1 participant