Skip to content

Warden::OAuth.access_token_user_finder doesn't work well with multiple devise scopes #18

@htapal

Description

@htapal

In my application I have 2 different devise scopes. When using devise-twitter to do the perform_connect, upon the invocation of Warden::OAuth.access_token_user_finder, the block is using @env['warden'].user to retrieve the currently logged in user which when using multiple scope is nil. Replacing that with @env['warden'].user(@scope) fixes this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions