Skip to content

warden is not authenticating switched user if user model in namespaced #53

@rajatgrover

Description

@rajatgrover

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.

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