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
270
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Death to Cookies, Long Live JSON Web Tokens
Matias Woloski
March 19, 2015
More Decks by Matias Woloski
See All by Matias Woloski
Death to Cookies Long Live Tokens - Gluecon 2014
woloski
0
180
jsconf.uy - Death to Cookies Long Live Tokens
woloski
0
44
Death to Cookies, Long Live Tokens
woloski
5
690
Other Decks in Technology
See All in Technology
巨大気象データと戦う ― サロゲートモデル学習を高速化する圧縮技術
gpuunite_official
0
230
形式手法特論:Hyperproperty とモデル検査 #kernelvm / Kernel VM Study Tokyo 19th
ytaka23
0
620
案件に一番詳しいAIを Amazon Bedrock AgentCore で作る ― 知見が知見を生むチームへ / Compounding Knowledge with AgentCore
yusukeshimizu
1
170
AIで変わるエンジニアの働き方(仮)
naoinaoi
0
370
Sets in Go
ramalho
1
1.2k
DDDのエッセンスを取り入れたAIでの開発
ak2ie
0
200
【CEDEC2026】Creative Approaches to Localizing the Dialects and Unique Speech of Umamusume: Pretty Derby Characters in English
cygames
PRO
4
26k
AIに狂うスタートアップが、あえて「人との協働」に全振りした新卒エンジニア研修 / New Graduate Engineer Training at a Startup Accelerating AI Adoption
ohnoeight
0
180
生成 AI の基礎 〜 サンプル実装で学ぶ基本原理
enakai00
7
4.6k
コーチングの奥義 何もしないテクニック
jinwatanabe
0
140
Head First モブプログラミング / Head First Mobprogramming
takaking22
10
12k
カーネルまで探検して理解するふたつの自動計装
sumiyae
0
140
Featured
See All Featured
Ruling the World: When Life Gets Gamed
codingconduct
0
310
We Are The Robots
honzajavorek
0
300
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
470
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
400
A Soul's Torment
seathinner
6
3.5k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
A designer walks into a library…
pauljervisheath
211
24k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Facilitating Awesome Meetings
lara
57
7.1k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
470
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)