-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
There is a bug in:
devise-doorkeeper/lib/devise/strategies/doorkeeper.rb
Lines 51 to 54 in 900cbb1
| def invalid_token | |
| fail!(WARDEN_INVALID_TOKEN_MESSAGE) | |
| throw :warden | |
| end |
Just as a record, warden < 1.2.8 does NOT set the winning_strategy when :warden is thrown. As a consequence, warden_message in DoorkeeperFailureApp is always empty:
devise-doorkeeper/lib/devise/doorkeeper/doorkeeper_failure_app.rb
Lines 16 to 18 in 900cbb1
| def oauth_error? | |
| warden_message == Devise::Strategies::Doorkeeper::WARDEN_INVALID_TOKEN_MESSAGE | |
| end |
This issue in warden was solved in master in this PR: wardencommunity/warden#175
Dependencies should be updated as soon as there is a new release of warden in order to fix this issue. For now you can manually install warden in your Gemfile pointing to master or any revision after the fix above.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels