devise-twitter icon indicating copy to clipboard operation
devise-twitter copied to clipboard

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

Open htapal opened this issue 14 years ago • 0 comments

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.

htapal avatar Feb 01 '11 19:02 htapal