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
클라이언트 권한 부여, 인증 시스템, OAuth-JWT
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Teddy
August 07, 2018
Programming
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
클라이언트 권한 부여, 인증 시스템, OAuth-JWT
Teddy
August 07, 2018
Transcript
28 slides
ۄ ӂೠ ࠗৈ ੋૐ/ੋо दझమ !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 ӣక
More Decks by Teddy
See All by Teddy
스타트업 개발자의 이야기 (국민대)
teddykims
1
110
개발자의 인공지능 뽀개기
teddykims
0
170
Git 기초
teddykims
0
100
2018.06, 싸이그래머 '심리상담과 IT'
teddykims
0
120
WebSocket, Socket.io
teddykims
1
71
2018.05, 소물, '소프트웨어와 미래 기술'
teddykims
0
88
소프트웨어와 미래 기술 (Software, Future Tech)
teddykims
0
200
리눅스 메모리 보호기법, 보안시스템의 이해
teddykims
0
250
무선 네트워크 해킹과 보안 (Network Hacking)
teddykims
0
240
Other Decks in Programming
See All in Programming
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
180
エージェントの管理もエージェントに – herdr-core と自作バックログで作る司令塔 –
nearme_tech
PRO
1
110
JavaScriptはシングルバイナリの夢を見るか / Does JavaScript Dream of a Single Binary?
ssssota
0
130
コード生成時代のAPI定義を支えるRequest Spec移行
pvcresin
0
300
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
470
SODA - FACT BOOK(EN)
sodainc
1
280
protojson における文字化けの扱い
kazuki1023
0
460
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
790
止まらない比較を止める — 余帰納法で無限ストリームを比べる
tarao
0
210
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
610
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
500
Proxmox x Talos Linux x Terraform で実現するなんかいい感じの Kubernetes クラスタ / A Sleek Kubernetes Cluster Powered by Proxmox, Talos Linux, and Terraform
nnaka2992
0
300
Featured
See All Featured
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
470
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
Become a Pro
speakerdeck
PRO
31
6.4k
Code Review Best Practice
trishagee
74
20k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
850
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
320
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
600
Technical Leadership for Architectural Decision Making
baasie
4
660
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Darren the Foodie - Storyboard
khoart
PRO
5
4.1k