Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Death to Cookies, Long Live JSON Web Tokens
Search
Matias Woloski
March 19, 2015
Technology
2
270
Death to Cookies, Long Live JSON Web Tokens
Matias Woloski
March 19, 2015
Tweet
Share
More Decks by Matias Woloski
See All by Matias Woloski
Death to Cookies Long Live Tokens - Gluecon 2014
woloski
0
160
jsconf.uy - Death to Cookies Long Live Tokens
woloski
0
39
Death to Cookies, Long Live Tokens
woloski
5
670
Other Decks in Technology
See All in Technology
Building Products in the LLM Era
ymatsuwitter
10
5.4k
管理者しか知らないOutlookの裏側のAIを覗く#AzureTravelers
hirotomotaguchi
2
350
自動テストの世界に、この5年間で起きたこと
autifyhq
10
8.5k
一度 Expo の採用を断念したけど、 再度 Expo の導入を検討している話
ichiki1023
1
160
データの品質が低いと何が困るのか
kzykmyzw
6
1.1k
トラシューアニマルになろう ~開発者だからこそできる、安定したサービス作りの秘訣~
jacopen
2
2k
技術負債の「予兆検知」と「状況異変」のススメ / Technology Dept
i35_267
1
1.1k
開発スピードは上がっている…品質はどうする? スピードと品質を両立させるためのプロダクト開発の進め方とは #DevSumi #DevSumiB / Agile And Quality
nihonbuson
2
2.9k
データマネジメントのトレードオフに立ち向かう
ikkimiyazaki
6
950
CZII - CryoET Object Identification 参加振り返り・解法共有
tattaka
0
350
モノレポ開発のエラー、誰が見る?Datadog で実現する適切なトリアージとエスカレーション
biwashi
6
800
現場の種を事業の芽にする - エンジニア主導のイノベーションを事業戦略に装着する方法 -
kzkmaeda
2
2k
Featured
See All Featured
A Tale of Four Properties
chriscoyier
158
23k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7.1k
Thoughts on Productivity
jonyablonski
69
4.5k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.5k
Producing Creativity
orderedlist
PRO
344
39k
Large-scale JavaScript Application Architecture
addyosmani
511
110k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
Navigating Team Friction
lara
183
15k
For a Future-Friendly Web
brad_frost
176
9.5k
Measuring & Analyzing Core Web Vitals
bluesmoon
6
240
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Transcript
Death to Cookies Long Live JSON Web Tokens
@woloski CTO & Founder Auth0
Identity made simple for developers
Authentication for Modern Applications using Tokens
Browser Web Server auth C C Most of the web
Browser Web Server (PHP) Realtime (Node) C M modern apps
Browser Web Server (PHP) Realtime (Node) C M Cookies are
coupled to the web framework modern apps
Browser Web Server (PHP) Realtime (Node) C M API (Node)
A Phones Tablets A modern apps
Browser Web Server (PHP) Realtime (Node) C M API (Node)
A APIs don’t use Cookies Phones Tablets A modern apps
Browser Web Server (PHP) Realtime (Node) C M API (Ruby)
API (Node) A A Phones Tablets A modern apps
Browser Web Server (PHP) Realtime (Node) C M API (Ruby)
API (Node) A A AWS S3 S Phones Tablets A modern apps
Browser Web Server (Python) Realtime (Node) C M API (Ruby)
API (Node) A A Cookies don’t “flow” AWS S3 S Phones Tablets A modern apps
A better approach Token-based Authentication JSON Web Tokens https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-30
auth0/deathcookies-talk Demo time!
TouchID Ask User to Login with TouchID Is Private Key
on KeyChain? Generate Key Pair Store Public Key on Server Generate JWT & Sign with Private Key Validate JWT with Public Key on Server Yes No
Browser modern apps Web Server (Python) Realtime (Node) API (Ruby)
API (Node) AWS S3 Phones Tablets
Thanks! @woloski @auth0 auth0.com/jobs
Appendix
None
None
Token expires, deal with refresh
Confidential info, encrypt it
Social auth
Tokens can get big Don’t over engineer Don’t do fine
grained permissions Define scopes
How to deal with protected images? https://github.com/hueniverse/hawk#single-uri-authorization Create signed requests
(single URI authorization)