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
클라이언트 권한 부여, 인증 시스템, OAuth-JWT
Search
Teddy
August 07, 2018
Programming
0
110
클라이언트 권한 부여, 인증 시스템, OAuth-JWT
Teddy
August 07, 2018
Tweet
Share
More Decks by Teddy
See All by Teddy
스타트업 개발자의 이야기 (국민대)
teddykims
1
96
개발자의 인공지능 뽀개기
teddykims
0
150
Git 기초
teddykims
0
81
2018.06, 싸이그래머 '심리상담과 IT'
teddykims
0
110
WebSocket, Socket.io
teddykims
1
56
2018.05, 소물, '소프트웨어와 미래 기술'
teddykims
0
80
소프트웨어와 미래 기술 (Software, Future Tech)
teddykims
0
180
리눅스 메모리 보호기법, 보안시스템의 이해
teddykims
0
230
무선 네트워크 해킹과 보안 (Network Hacking)
teddykims
0
200
Other Decks in Programming
See All in Programming
OSS開発者という働き方
andpad
5
1.7k
機能追加とリーダー業務の類似性
rinchoku
2
1.3k
ProxyによるWindow間RPC機構の構築
syumai
3
1.2k
Flutter with Dart MCP: All You Need - 박제창 2025 I/O Extended Busan
itsmedreamwalker
0
150
testingを眺める
matumoto
1
140
プロポーザル駆動学習 / Proposal-Driven Learning
mackey0225
2
1.3k
速いWebフレームワークを作る
yusukebe
5
1.7k
Introducing ReActionView: A new ActionView-compatible ERB Engine @ Rails World 2025, Amsterdam
marcoroth
0
690
Android 16 × Jetpack Composeで縦書きテキストエディタを作ろう / Vertical Text Editor with Compose on Android 16
cc4966
2
230
「手軽で便利」に潜む罠。 Popover API を WCAG 2.2の視点で安全に使うには
taitotnk
0
860
Kiroで始めるAI-DLC
kaonash
2
590
テストカバレッジ100%を10年続けて得られた学びと品質
mottyzzz
2
600
Featured
See All Featured
Writing Fast Ruby
sferik
628
62k
Raft: Consensus for Rubyists
vanstee
140
7.1k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
Automating Front-end Workflow
addyosmani
1370
200k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
30
9.7k
Designing for Performance
lara
610
69k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
188
55k
GraphQLとの向き合い方2022年版
quramy
49
14k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
Visualization
eitanlees
148
16k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Transcript
ۄ ӂೠ ࠗৈ ੋૐ/ੋо दझమ !1
ӝઓ Api ࠁউ? !2
दр হҊ ә೧ࢲ ݄ ݅ٞ !3
‘ળ’ ӏѺਵ۽ ٜ݅! !4
‘ળ’ <Api-Token> !5
“ೲо ߉ ࢎਊ݅ API ܳ ࢎਊೡ ࣻ .” !6
“Api ߑޙ ٘” !7
OAuth !8
{ "access_token": "J1qK1c18UUGJFAzz9xnH56584l4", “refresh_token”: "SDAS2328asdVASd1238asdA", "expires_in": 3600, "scope": "*", "token_type":
"bearer" } !9
ੋૐ, ੋоܳ ਤೠ Standard Protocol !10
“যڌѱ ೞݶ ൝যઉ ח Application ٜ ੋૐ ҙܻܳ ঔীࢲ औѱ
ೡ Ѫੋо” !11
“ਬо ಕझ࠘, ਤఠ э ৡۄੋ ࢲ࠺झ ӝמਸ ܲ জীࢲب ࢎਊೡ
ࣻ ѱ Ք !” !12
OAuth 1.0 (RFC 5849, 2007) OAuth 1.0 A OAuth 2.0
(RFC 6749, 2012) !13
OAuth 1.x ਊয ߸҃ ࢲߡ ೡ ܻ࠙ ੋૐ ର хࣗച
ঐഐച ߑध ߸҃ (٣ణ ࢲݺ -> HTTPS) নೠ ੋૐ ߑध ઁҕ ۨਕ ഋక۽ .. OAuth 2.x !14
!15
{ "access_token": "J1qK1c18UUGJFAzz9xnH56584l4", “refresh_token”: "SDAS2328asdVASd1238asdA", "expires_in": 3600, "scope": "*", "token_type":
"bearer" } ݽٚ షҗ ࠁܳ ؘఠ߬झী ೞৈ ഛੋ ਃೣ. !16
1. ࠂೞ 2. ޖѩ !17
Third-Party App / ࢲ࠺झী Ӕೞח ৻ࠗ জ ੋૐ ߂ ӂೠ
ҙܻী !18
JWT (JSON WEB TOKEN) !19
{ "access_token": "J1qK1c18UUGJFAzz9xnH56584l4", "expires_in": 3600, "token_type": "bearer" } !20
Claim ӝ߈ ష दझమ !21
Claim = ࢎਊী ೠ ࣘࢿ !22
Claim = ࢎਊী ೠ ࣘࢿ !23 { ‘id’: ‘teddy’, ‘group’:
‘admin’} eyDigJhpZOKAmTog4oCYdGVkZHnigJ ksIOKAmGdyb3Vw4oCZOiDigJhhZG1p buKAmX0=
!24
!25
ష о ࠁܳ оҊ ӝী, షਸ оҊ ࢲ࠺झա API Ӕਸ
ઁযೡ ٸ ߹ب ੋૐ ࢲߡ স ਃೞ ঋਵݴ, ష ܳ ࢲߡীࢲ ҙܻೡ ਃо হӝ ٸޙী ҳഅ ࢚ਵ۽ ױࣽ೧. !26
!27 < ੌ߈ OAuth > < JWT >
)VNBSU$PNQBOZ ӣక