Skip to content

Instantly share code, notes, and snippets.

@antonioparisi
Last active August 29, 2015 14:04
Show Gist options
  • Save antonioparisi/f6023740de8ec9055bd8 to your computer and use it in GitHub Desktop.
Save antonioparisi/f6023740de8ec9055bd8 to your computer and use it in GitHub Desktop.
Demo app using ember-simple-auth + ember-simple-auth-torii + torii

Demo app using ember-simple-auth + ember-simple-auth-torii + torii

BRIEFING

Have a little demo app, trying to use ember-simple-auth with ember-simple-auth-torii + torii (client and API), having a fluid authentication workflow:

  • Auth with e.g. facebook-connect
  • Send userId and accessToken to the API
  • Check that it's a valid facebook user
  • Generate a random accessToken on the API
  • Send the generated accessToken to the client
  • Save it as cookie or localStorage (we should see how to manage it, and if we can integrate some ESA authenticators without reinvent the wheel)
  • As final step, having a page refresh it should be always logged!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment