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
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
70
2018.05, 소물, '소프트웨어와 미래 기술'
teddykims
0
87
소프트웨어와 미래 기술 (Software, Future Tech)
teddykims
0
200
리눅스 메모리 보호기법, 보안시스템의 이해
teddykims
0
250
무선 네트워크 해킹과 보안 (Network Hacking)
teddykims
0
240
Other Decks in Programming
See All in Programming
AI-Powered Domain-Driven Design
ziobrando
0
470
AI Augmentation Techniques with Liberty
ivargrimstad
1
520
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
220
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
2.4k
Getting Started with Vibe Coding
miccheng
0
240
Ruby から Emacs を操作したい
phigasui
0
350
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
1k
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
200
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
690
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.4k
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
190
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
350
Featured
See All Featured
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
640
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
840
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
680
How STYLIGHT went responsive
nonsquared
100
6.4k
Designing for Timeless Needs
cassininazir
1
570
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
400
Believing is Seeing
oripsolob
1
280
Odyssey Design
rkendrick25
PRO
3
960
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
320
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
430
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
640