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 is not authenticating switched user if user model in namespaced #53

Open
rajatgrover opened this issue Dec 30, 2013 · 1 comment

Comments

@rajatgrover
Copy link

Hello,

My user is under a module so I made the changes in config file as follows:

config.available_users = { :"MyModule::User" => lambda { MyModule::User.all } }

And when I switch the user I find that warden is scoped to MyModule::User for logout and login which is not working. If I remove the scope from line no. 10 and 14 of devise.rb file @warden.set_user(user, :scope => scope) & @warden.logout(scope) respectively then it is working.

Any help is appreciated.

Thanks in advance.

@lcowell
Copy link
Collaborator

lcowell commented Jan 8, 2014

Sorry for the delay in getting back to you. Would you be able to work up an example project that demonstrates this behaviour ? I'm a bit short on time right now and that would make it easy for me to see exactly what is going wrong.

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

2 participants