TouchID
Ask User to
Login with
TouchID
Is
Private
Key on
KeyChain?
Generate
Key Pair and
store in
KeyChain
Store Public
Key on
Server
Generate
JWT & Sign
with Private
Key
Validate
JWT with
Public Key
on Server
Yes
No
Slide 17
Slide 17 text
auth0/TouchIDAuth
pod “TouchIDAuth”
Slide 18
Slide 18 text
Browser
modern apps
Web Server
(Python)
Realtime
(Node)
API
(Ruby)
API
(Node)
AWS S3
Phones
Tablets
Slide 19
Slide 19 text
Win a Drone with JWTs!
auze.ro/win-drone
Slide 20
Slide 20 text
T-shirts
Bitcoins
Stickers
Drones
Thanks!
Slide 21
Slide 21 text
Appendix
Slide 22
Slide 22 text
No content
Slide 23
Slide 23 text
No content
Slide 24
Slide 24 text
Token expires, deal with refresh
Slide 25
Slide 25 text
Confidential info, encrypt it
Slide 26
Slide 26 text
Social auth
Slide 27
Slide 27 text
Tokens can get big
Don’t over engineer
Don’t do fine grained permissions
Define scopes
Slide 28
Slide 28 text
How to deal with protected
images?
https://github.com/hueniverse/hawk#single-uri-authorization
Create signed requests (single URI authorization)