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

Can't log out #15

Open
nachokb opened this issue Oct 25, 2016 · 0 comments
Open

Can't log out #15

nachokb opened this issue Oct 25, 2016 · 0 comments

Comments

@nachokb
Copy link

nachokb commented Oct 25, 2016

I'm trying to use grape_devise_token_auth in an existing Rails + Devise app[1].

I don't want to use devise_token_auth's session controller b/c I need my API to have these endpoints. No API endpoints outside Grape.

My current problem is with logout. I reset the token on the resource, make warden log it out, but then it complains because AuthHeaders tries to access the user, and afterwards that user's no-longer-existing token (for a given client). Basically what I'm not seeing is something like #skip_auth_headers.

Maybe I'm missing something big, but is there any way to force it to skip?

[1] grape_token_auth is not good for this because it breaks, in a way I can't totally understand, the app's authentication using devise (first it changed some validations on my user model, then Devise complained about not having any strategy to authenticate and I stopped looking). Also, gta's session api is not well described to use with swagger.

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