Skip to content

WARDEN_INVALID_TOKEN_MESSAGE not being rendered when token is invalid and Doorkeeper strategy fails #15

@pjmartorell

Description

@pjmartorell

There is a bug in:

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions