-
Notifications
You must be signed in to change notification settings - Fork 233
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
After Sign-in success, The following requests on Angular side are unauthorized. #285
Comments
Update Server response after login
The user response in the console (No token information)
Subsequent requests are failed.Because the Subsequent requests don't contain any token in the header
configuration
|
I fixed the cookie not persisted by changing |
Now you are logged on reload and you can see token. right? But are you able to post on api with a filter on server side that need user to be logged. I still cant. Do you have an interceptor or something to add token to the post request, on your angular app? |
@FredHasselot Today, I did another auth token module again, it works. |
@poc7667 Thanks a lot for the link. |
@poc7667 link now broken I'm seeing the same problem. |
http://poc7667.github.io/2016/04/25/token-auth/ don't work. Help us, please... |
I had the same problem as described here: lynndylanhurley#285 Fix it the same way.
After Signin success by email auth,
The following requests on Angular (js side) are Unauthorized.
I can not see the token in the success response,
And I guess those following requests didn't send the tokens as well.
What's the buggy point? Thanks
successful email auth on http://localhost:3000/api/v1/auth/sign_in
I do the GET request in other controllers and got Unauthorized exception
Authentication on http://localhost:3000/api/v1/banks
I got `401 (Unauthorized)``
Exception on console
Request Header
routes.rb
api/v1/banks.rb
application.rb
Angular App config
The text was updated successfully, but these errors were encountered: