We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After update code with #1209 pull request (on master branch or tags v5.1.0rc2), send a request to token introspection endpoint with following format:
POST /oauth/introspect HTTP/1.1 Header: Authorization = Bearer bearer_access_token Body: token=Wrong_token (just set a random token)
Because body's token was wrong, expected response is
{ "active": false }
Exception occurred: No method .token for nil value. At the following line
.token
doorkeeper/lib/doorkeeper/oauth/token_introspection.rb
Line 166 in 9bb03f8
@token is gotten from request's param at these line
@token
doorkeeper/app/controllers/doorkeeper/tokens_controller.rb
Lines 77 to 80 in 9bb03f8
Using doorkeeper on master branch or tags v5.1.0rc2.
The text was updated successfully, but these errors were encountered:
Fixed by #1243
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
After update code with #1209 pull request (on master branch or tags v5.1.0rc2), send a request to token introspection endpoint with following format:
Expected behavior
Because body's token was wrong, expected response is
Actual behavior
Exception occurred: No method
.token
for nil value. At the following linedoorkeeper/lib/doorkeeper/oauth/token_introspection.rb
Line 166 in 9bb03f8
Reason
@token
is gotten from request's param at these linedoorkeeper/app/controllers/doorkeeper/tokens_controller.rb
Lines 77 to 80 in 9bb03f8
In case token is wrong, it will be nil. So the exception will occurred.
System configuration
Using doorkeeper on master branch or tags v5.1.0rc2.
The text was updated successfully, but these errors were encountered: