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

Multiple Devise Models. One using token #342

Closed
pducks32 opened this issue Aug 17, 2015 · 2 comments
Closed

Multiple Devise Models. One using token #342

pducks32 opened this issue Aug 17, 2015 · 2 comments

Comments

@pducks32
Copy link

So I have a rails app where Admins can login and also Clients, but Clients can only login from a separate app that uses j-toker to sign them in. The problem is allowing both. I created a seperate API controller for devise_token_auth but it doesn't seem to get called it always seems to call the standard ApplicationController's :authenticate_admin! method which tells me its using ApplicationController. Any ideas on how to fix the problem?

Update: From what I can tell its because this gem's main controller inherits from DeviseController which inherits from Devise.parent_class which is auto set to ApplicationController. Still can't get anything to work but if that helps anyone help me than awesome.

@frankmarineau
Copy link

Bump, I also have two models for Auth, and would like one of them to use tokens and the other to use normal Devise auth. Is there a way to do this right now?

@zachfeldman
Copy link
Contributor

Hi there @pducks32 and @frankmarineau ,

In an effort to cleanup this project and prioritize a bit, we're marking issues that haven't had any activity in a while with a "close-in-7-days" label. If we don't hear from you in about a week, we'll be closing this issue. Obviously feel free to re-open it at any time if it's the right time or this was done in error!

If you are still having the issue (especially if it's a bug report) please refer to our new Issue Template to provide some more details to help us solve it.

Hope all is well.

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

No branches or pull requests

3 participants