Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
JWT in GO
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Yamil Asusta
October 16, 2014
Programming
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
JWT in GO
Simple walkthrough of JWT with a sample app
Yamil Asusta
October 16, 2014
More Decks by Yamil Asusta
See All by Yamil Asusta
After Years of Node in Prod, We Still Block the Event Loop
elbuo8
0
99
Breaking the "Apply Online"
elbuo8
1
150
Other Decks in Programming
See All in Programming
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
1k
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
2
550
JIS keyboard support in Omarchy
lef237
0
110
現場と育てるRailsモデリング 〜Spreadsheetから始めたモデル設計〜
siroemk
2
590
すこし踏み込む CancellationToken
htkym
2
1.7k
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
210
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
790
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
260
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.5k
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
210
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
Featured
See All Featured
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
Raft: Consensus for Rubyists
vanstee
142
7.8k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
590
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
570
My Coaching Mixtape
mlcsv
0
360
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
520
WENDY [Excerpt]
tessaabrams
14
40k
Transcript
JWTs Yamil Asusta Developer Evangelist" @elbuo8
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX VCJ9.eyJuYW1lIjoiWWFtaWwgQ XN1c3RhIiwicm9sZSI6IkRldmVsb3 BlciBFdmFuZ2VsaXN0IiwibG9jYX Rpb24iOiJOWUMgJiBQUiIsImxpa2 VzIjpbIkJlZXIiLCJUcmF2ZWxpbmci LCJQcm9ncmFtbWluZyJdfQ.9k- YwDwlrwMtNNCQ1YGkMldF8sS6 ZOTTAnhvE39WFPo
JSON Web Token (JWT)
JSON Web Token (JWT) is a compact URL-safe means of
representing claims to be transferred between two parties. The claims in a JWT are encoded as a JSON object that is digitally signed using JSON Web Signature (JWS). IETF
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiWWFtaWwgQ XN1c3RhIiwicm9sZSI6IkRldmVsb3BlciBFdmFuZ2VsaXN0IiwibG9jY XRpb24iOiJOWUMgJiBQUiIsImxpa2VzIjpbIkJlZXIiLCJUcmF2ZWxpb mciLCJQcm9ncmFtbWluZyJdfQ.9k- YwDwlrwMtNNCQ1YGkMldF8sS6ZOTTAnhvE39WFPo
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
{" "alg": "HS256"," "typ": "JWT"" }
eyJuYW1lIjoiWWFtaWwgQXN1c3RhIiwicm9sZSI6IkRldm Vsb3BlciBFdmFuZ2VsaXN0IiwibG9jYXRpb24iOiJOWUMg JiBQUiIsImxpa2VzIjpbIkJlZXIiLCJUcmF2ZWxpbmciLCJQc m9ncmFtbWluZyJdfQ
{ "name": "Yamil Asusta", "role": "Developer Evangelist", "location": "NYC &
PR", "likes": [ "Beer", "Traveling", "Programming" ] }
9k- YwDwlrwMtNNCQ1YGkMldF8sS6ZOTTAnhvE39WFPo
How do I generate the token?
base64(headers) + “.” + base64(claims) + “.” +" sign(claims, secret)
Why?
User User App Session Store(s) App JWT Approach Cookie Approach
To the code!
/dgrijalva/jwt-go
/codegangsta/negroni
$ openssl genrsa -out demo.rsa 1024" " $ openssl rsa
-in demo.rsa -pubout > demo.rsa.pub
None