Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ember.SimpleAuth

 Ember.SimpleAuth

Introduction to Ember.SimpleAuth, the lightweight library for implementing authentication/authorization in Ember.js applications.

3179e6bb62dc91d29bb906ffef4fa2d4?s=128

Marco Otte-Witte

March 20, 2014
Tweet

Transcript

  1. Ember.SimpleAuth

  2. Marco Otte-Witte ! http://simplabs.com

  3. Ember.SimpleAuth ! http://ember-simple-auth.simplabs.com

  4. Authentication/Authorization library for Ember.js ! https://github.com/simplabs/ember-simple-auth

  5. Terminology

  6. Authentication ! verifies who the user is

  7. Authorization ! verifies what the user is allowed to do

  8. what does Ember.SimpleAuth do?

  9. provides a (client-side) session

  10. authenticates and invalidates
 the session ! via pluggable strategies

  11. enforces the session to be authenticated for defined routes

  12. synchronizes the session across tabs/windows, persists it

  13. injects authorization info
 into server requests ! via pluggable strategies

  14. Demo ! https://github.com/simplabs/ember-simple- auth/blob/master/examples/1-simple.html

  15. Flexibility

  16. many authentication mechanisms per app, one authorization mechanism

  17. one store

  18. Default authenticator implements RFC 6749 (OAuth 2.0)

  19. „Resource Owner Password Credentials Grant Type“

  20. Default authorizer implements RFC 6750 (Bearer Tokens)

  21. Authorization: Bearer <secret token!>

  22. easy to implement custom authenticators/authorizers

  23. Demo ! https://github.com/simplabs/ember-simple- auth/blob/master/examples/7-facebook- auth.html

  24. Outlook

  25. extraction of default authenticator/authorizer in own packages ! https://github.com/simplabs/ember-simple- auth/tree/sub-packages

  26. Devise-compatible authenticator from @timothycommoner ! https://github.com/simplabs/ember-simple- auth/pull/107

  27. provide your authenticators and authorizers!

  28. Resources

  29. https://github.com/simplabs/ember-simple- auth#readme http://ember-simple-auth.simplabs.com/ api.html

  30. all the examples are in the repo with instructions on

    how to run them
  31. Q&A