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
20190827_Auth0_Rules_使ってみた.pdf
Search
shuntaka
August 29, 2019
Technology
0
280
20190827_Auth0_Rules_使ってみた.pdf
shuntaka
August 29, 2019
Tweet
Share
More Decks by shuntaka
See All by shuntaka
サーバーレスAPI(API Gateway+Lambda)とNext.jsで 個人ブログを作ろう!
shuntaka
0
950
NestJS Prisma on Fargate構成で作るWeb API開発Tips
shuntaka
1
15k
GoとServer-Sent Events
shuntaka
0
8.7k
GoでDynamoDBのCLI(便利)を作った
shuntaka
0
110
AWSのCI/CDサービスを試してみた!
shuntaka
0
230
Goでブラウザ業務を自動化する
shuntaka
0
2.2k
Other Decks in Technology
See All in Technology
EventHub Startup CTO of the year 2024 ピッチ資料
eventhub
0
120
強いチームと開発生産性
onk
PRO
35
11k
【Startup CTO of the Year 2024 / Audience Award】アセンド取締役CTO 丹羽健
niwatakeru
0
1.3k
障害対応指揮の意思決定と情報共有における価値観 / Waroom Meetup #2
arthur1
5
480
マルチモーダル / AI Agent / LLMOps 3つの技術トレンドで理解するLLMの今後の展望
hirosatogamo
37
12k
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
210
OS 標準のデザインシステムを超えて - より柔軟な Flutter テーマ管理 | FlutterKaigi 2024
ronnnnn
0
180
SRE×AIOpsを始めよう!GuardDutyによるお手軽脅威検出
amixedcolor
0
150
Incident Response Practices: Waroom's Features and Future Challenges
rrreeeyyy
0
160
エンジニア人生の拡張性を高める 「探索型キャリア設計」の提案
tenshoku_draft
1
130
Oracle Cloud Infrastructureデータベース・クラウド:各バージョンのサポート期間
oracle4engineer
PRO
28
13k
日経電子版のStoreKit2フルリニューアル
shimastripe
1
130
Featured
See All Featured
A Philosophy of Restraint
colly
203
16k
We Have a Design System, Now What?
morganepeng
50
7.2k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
Documentation Writing (for coders)
carmenintech
65
4.4k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
900
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Being A Developer After 40
akosma
87
590k
Building Applications with DynamoDB
mza
90
6.1k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Transcript
Auth0 Rules ͬͯΈͨ 2019/08/29 Auth0ϢʔβʔίϛϡχςΟMeetup in ౦ژ Vol.2 shuntaka
Twitter: @shuntaka_jp github: shuntaka9576 ࣄ: classmethod(ࠓ݄ೖࣾ) DevelopersIO: shuntaka
Rulesʹ1िؒ͘Β͍৮Εͯ ͔ͬͨ͜ͱΛ͠·͢ʂ
ॳ৺ऀ͚Ͱ͢ɻɻɻɻ
ͦͦRules
%BUBCBTF 4PDJBM &OUFSQJSTF 1BTTXPSEMFTT Connections Core Runtime 4BOECPY 8FCUBTL 3VMF
3VMF 3VMF/ ɾɾ ɾ ࢀߟ: https://auth0.com/docs/rules
%BUBCBTF 4PDJBM &OUFSQJSTF 1BTTXPSEMFTT Connections Core Runtime 4BOECPY 8FCUBTL 3VMF
3VMF 3VMF/ ɾɾ ɾ ϩάΠϯ
%BUBCBTF 4PDJBM &OUFSQJSTF 1BTTXPSEMFTT Connections Core Runtime 4BOECPY 8FCUBTL 3VMF
3VMF 3VMF/ ɾɾ ɾ ϩάΠϯ *%1SPWJEFSͰೝূ
%BUBCBTF 4PDJBM &OUFSQJSTF 1BTTXPSEMFTT Connections Core Runtime 4BOECPY 8FCUBTL 3VMF
3VMF 3VMF/ ɾɾ ɾ ੍ޚ͕8FCΞϓ ϦʹΔ ϩάΠϯ *%1SPWJEFSͰೝূ
%BUBCBTF 4PDJBM &OUFSQJSTF 1BTTXPSEMFTT Connections Core Runtime 4BOECPY 8FCUBTL 3VMF
3VMF 3VMF/ ɾɾ ɾ ϩάΠϯ ੍ޚ͕8FCΞϓϦʹΔ *%1SPWJEFSͰೝূ
%BUBCBTF 4PDJBM &OUFSQJSTF 1BTTXPSEMFTT Connections Core Runtime 4BOECPY 8FCUBTL 3VMF
3VMF 3VMF/ ɾɾ ɾ ϩάΠϯ 8FCΞϓϦʹ੍ޚ͕Δ ҙͷίʔυ͕࣮ߦͰ͖Δ! *%1SPWJEFSͰೝূ
࣮ߦڥʹ͍ͭͯ
ɾϥϯλΠϜ ɾར༻ՄೳͳϥΠϒϥϦ ࢀߟ: https://auth0.com/docs/rules/references/modules (https://auth0-extensions.github.io/canirequire/) (8/27 ࣌ process.versions.nodeͰग़ྗ݁Ռɺ8.11.4) ES6ͱNode.js(version8Ҏ߱)Λαϙʔτ async/awaitར༻Մೳʂ
Can I require: Auth0 Extensibilityࢀর
RulesͷϢʔεέʔε
%BUBCBTF 4PDJBM &OUFSQSJTF 1BTTXPSEMFTT Connections Core Runtime 4BOECPY 8FCUBTL 3VMF
3VMF 3VMF/ ɾɾ ɾ ΫϥΠΞϯτ͕ͬͯஔ͖ ͍ͨใΛऔಘ ࣾAPI CRMج൫
%BUBCBTF 4PDJBM &OUFSQSJTF 1BTTXPSEMFTT Connections Core Runtime 4BOECPY 8FCUBTL 3VMF
3VMF 3VMF/ ɾɾ ɾ JE@UPLFOʹؚΊͯ ΫϥΠΞϯτʹ͑Δ ࣾAPI CRMج൫
ৄࡉϒϩάʹ https://dev.classmethod.jp/etc/shuntaka9576-rules2/
⚠ ҙ ⚠
%BUBCBTF 4PDJBM &OUFSQJSTF 1BTTXPSEMFTT Connections Core Runtime 4BOECPY 8FCUBTL 3VMF
3VMF 3VMF/ ɾɾ ɾ 20ඵͷ࣮ߦ੍ݶ͋Γ ࢀߟ: https://auth0.com/docs/best-practices/rules
ޮΑ͍ίʔυΛॻͨ͘Ίʹɺ ͑ΔΦϒδΣΫτΛѲ͠·͠ΐ͏👊
4BOECPY 8FCUBTL con fi guration context user auth0 global 3VMF
3VMF 3VMF/ ɾɾɾ
4BOECPY 8FCUBTL con fi guration context user auth0 global 3VMF
3VMF 3VMF/ ɾɾɾ ɾෳͷϧʔϧ͔ΒࢀরՄೳ ɾϋΠίετͳมΛอଘ͢ΔྖҬ
4BOECPY 8FCUBTL context user auth0 global 3VMF 3VMF 3VMF/ ɾɾɾ
con fi guration ɾઃఆͨ͠ڥม͕ར༻Մೳ ɹ(APIΩʔͳͲͷػີใ֨ೲॴ)
4BOECPY 8FCUBTL context user global con fi guration auth0 3VMF
3VMF 3VMF/ ɾɾɾ "VUI .BOBHFNFOU"1*W ɾAuth0ͷAPIΛݺͼग़͠Մೳ ɾݖݶuserͷread,updateʹݶΒΕΔ
4BOECPY 8FCUBTL con fi guration user auth0 global context 3VMF
3VMF 3VMF/ ɾɾɾ ɾϩάΠϯͨ͠ϢʔβʔͷίϯςΩετใ (IPΞυϨεɺΞϓϦέʔγϣϯ)
4BOECPY 8FCUBTL con fi guration auth0 context global 3VMF user
3VMF 3VMF/ ɾɾɾ ɾϩάΠϯͨ͠Ϣʔβʔͷใ͕औಘՄೳ ɾσϑΥϧτͷid_tokenΑΓৄࡉͳใ͕औΕΔ
ৄࡉϒϩάʹ(ຊ2) https://dev.classmethod.jp/etc/shuntaka9576-auth0- rules/
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ