Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Ember.SimpleAuth
Slide 2
Slide 2 text
Marco Otte-Witte ! http://simplabs.com
Slide 3
Slide 3 text
Ember.SimpleAuth ! http://ember-simple-auth.simplabs.com
Slide 4
Slide 4 text
Authentication/Authorization library for Ember.js ! https://github.com/simplabs/ember-simple-auth
Slide 5
Slide 5 text
Terminology
Slide 6
Slide 6 text
Authentication ! verifies who the user is
Slide 7
Slide 7 text
Authorization ! verifies what the user is allowed to do
Slide 8
Slide 8 text
what does Ember.SimpleAuth do?
Slide 9
Slide 9 text
provides a (client-side) session
Slide 10
Slide 10 text
authenticates and invalidates the session ! via pluggable strategies
Slide 11
Slide 11 text
enforces the session to be authenticated for defined routes
Slide 12
Slide 12 text
synchronizes the session across tabs/windows, persists it
Slide 13
Slide 13 text
injects authorization info into server requests ! via pluggable strategies
Slide 14
Slide 14 text
Demo ! https://github.com/simplabs/ember-simple- auth/blob/master/examples/1-simple.html
Slide 15
Slide 15 text
Flexibility
Slide 16
Slide 16 text
many authentication mechanisms per app, one authorization mechanism
Slide 17
Slide 17 text
one store
Slide 18
Slide 18 text
Default authenticator implements RFC 6749 (OAuth 2.0)
Slide 19
Slide 19 text
„Resource Owner Password Credentials Grant Type“
Slide 20
Slide 20 text
Default authorizer implements RFC 6750 (Bearer Tokens)
Slide 21
Slide 21 text
Authorization: Bearer
Slide 22
Slide 22 text
easy to implement custom authenticators/authorizers
Slide 23
Slide 23 text
Demo ! https://github.com/simplabs/ember-simple- auth/blob/master/examples/7-facebook- auth.html
Slide 24
Slide 24 text
Outlook
Slide 25
Slide 25 text
extraction of default authenticator/authorizer in own packages ! https://github.com/simplabs/ember-simple- auth/tree/sub-packages
Slide 26
Slide 26 text
Devise-compatible authenticator from @timothycommoner ! https://github.com/simplabs/ember-simple- auth/pull/107
Slide 27
Slide 27 text
provide your authenticators and authorizers!
Slide 28
Slide 28 text
Resources
Slide 29
Slide 29 text
https://github.com/simplabs/ember-simple- auth#readme http://ember-simple-auth.simplabs.com/ api.html
Slide 30
Slide 30 text
all the examples are in the repo with instructions on how to run them
Slide 31
Slide 31 text
Q&A