-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Invalid Authenticity Token with last version #109
Comments
I'm not sure if this should be classified as a bug with this gem - I think that's a default Rails behavior. But I'll leave this issue open as a reminder to make a note in the readme. Thanks @nicolas-besnard! |
I am still getting an error even with the Any possibility that I can get some guidance on this one? |
Can you C/C your log file with the errors ? Are you sending a request with JSON headers ? |
@nicolas-besnard - sorry about the delay. Here is the error output with trace for an unsuccessful registration call (when there are no parameters supplied).
|
You didn't send any parameters. Did you use ng-token-auth ? Are you doing
|
@nicolas-besnard Just closing the loop on this. Thanks for the support. I was not using ng-token-auth. This is solved. |
I think can say I can reproduce this issue: Without protect_from_forgery with: :null_session:
With protect_from_forgery with: :null_session it works. I created a custom controller that extends the default DeviseTokenAuth::SessionsController and I added this. But I think it shouldn't be needed. |
Still happens any update? |
Hi there @nicolas-besnard , 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. |
I get an error
ActionController::InvalidAuthenticityToken
with the last version (0.1.31.beta9). I had to hadprotect_from_forgery with: :null_session
on ApplicationController.The text was updated successfully, but these errors were encountered: