Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
How to send oauth token authentication to another client server #493
Forgive me for my English.
I do not know what is the proper way to do the following:
I have two servers:
In localhost:8080/#/ I have a link that redirects to the server feahters localhost:3030/auth/facebook. the user registers correctly and redirects me to "successRedirect": "/auth/success". The token is stored in cookies. I also have this route:
When I get the token in my vuejs I can simply do it.
This action is from feathers-vuex. Same as feathersClient.authenticate()
This gives me some concerns.
I'm starting with feathersjs and vuejs I hope you can guide me. If I have done something wrong forgive me.
Thank you very much, greetings from PERU
You can send the token in a URL. Just make sure you use SSL. Here's a gist with an example of how to make it happen:
@marshallswain I followed your gist exactly and retrieved the token within vue.js to store it in localStorage. Now when I try to authenticate() with this token I receive the following error:
How can I submit the userId as payload as well? I am not sending a strategy as payload with the authenticate() method, as this is the recommended way in the feathers docs.