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

get Authorized users only when use devise with devise_token_auth #553

Closed
RailsDevKH opened this issue Feb 29, 2016 · 6 comments
Closed

get Authorized users only when use devise with devise_token_auth #553

RailsDevKH opened this issue Feb 29, 2016 · 6 comments

Comments

@RailsDevKH
Copy link

When i use devise and devise_token_auth together i alway get message like below.

Filter chain halted as :authenticate_user! rendered or redirected
Completed 401 Unauthorized in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)

If use with api is work well but when i use with rails it now work by show Authorized users

@mikevic
Copy link

mikevic commented Mar 2, 2016

+1 for this! :)

@ingolfured
Copy link
Contributor

+1

@RailsDevKH
Copy link
Author

I have solve this problem by remove
before_action :authenticate_user! from my application controller

@gfauredumont
Copy link

Same here but I didn't have this issue before; is it from an update ?
@RailsDevKH solution worked for me as well (I'm glad removing authentication from App controller wasn't a big deal on this app...)

@AhmedAtef07
Copy link

Any updates on this issue?
I am adding the :authenticate_user! in each controller instead of the application controller one and I still face this problem.

@zachfeldman
Copy link
Contributor

Hi there @RailsDevKH ,

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

6 participants