dimanche 28 février 2016

Ember Authentication Confusion

I am a little confused about how Ember authentication works with a RESTful API. I am using Sails.js for my API. I setup Google OAuth and when the user goes to http://ift.tt/21BVgzq they are redirected to Google and login. After that, the API works (no access to API unless authenticated). http://ift.tt/14icA3P does exactly what you would expect. This all works great. Now I am working on the client side application. I am using Ember.js. This looks like a helpful addon: http://ift.tt/19DSWMs. Is what I am trying to do considered "Authorization Grant flow"? Ember shouldn't even care if the server is using OAuth or something else so this doesn't seem right to me. Any pointers would be greatly appreciated, I am very new to OAuth and Ember. Thanks!




Aucun commentaire:

Enregistrer un commentaire