Skip to content
New issue

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

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

Open
htapal opened this issue Feb 1, 2011 · 0 comments

Comments

@htapal
Copy link

htapal commented Feb 1, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant