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
1.1k
NestJS Prisma on Fargate構成で作るWeb API開発Tips
shuntaka
1
15k
GoとServer-Sent Events
shuntaka
0
8.8k
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
NilAway による静的解析で「10 億ドル」を節約する #kyotogo / Kyoto Go 56th
ytaka23
3
370
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
100
GitHub Copilot のテクニック集/GitHub Copilot Techniques
rayuron
26
11k
1等無人航空機操縦士一発試験 合格までの道のり ドローンミートアップ@大阪 2024/12/18
excdinc
0
150
watsonx.ai Dojo #5 ファインチューニングとInstructLAB
oniak3ibm
PRO
0
160
ずっと昔に Star をつけたはずの思い出せない GitHub リポジトリを見つけたい!
rokuosan
0
150
Turing × atmaCup #18 - 1st Place Solution
hakubishin3
0
470
私なりのAIのご紹介 [2024年版]
qt_luigi
1
120
Microsoft Azure全冠になってみた ~アレを使い倒した者が試験を制す!?~/Obtained all Microsoft Azure certifications Those who use "that" to the full will win the exam! ?
yuj1osm
2
110
小学3年生夏休みの自由研究「夏休みに Copilot で遊んでみた」
taichinakamura
0
150
ハイテク休憩
sat
PRO
2
140
Snowflake女子会#3 Snowpipeの良さを5分で語るよ
lana2548
0
230
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
365
19k
Why Our Code Smells
bkeepers
PRO
335
57k
How to train your dragon (web standard)
notwaldorf
88
5.7k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Building Adaptive Systems
keathley
38
2.3k
Done Done
chrislema
181
16k
Into the Great Unknown - MozCon
thekraken
33
1.5k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Building an army of robots
kneath
302
44k
Faster Mobile Websites
deanohume
305
30k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
Optimizing for Happiness
mojombo
376
70k
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/
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ