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
プロダクト開発を加速させるためのQA文化の築き方 / How to build QA culture to accelerate product development
mii3king
1
270
AWS re:Invent 2024で発表された コードを書く開発者向け機能について
maruto
0
190
多領域インシデントマネジメントへの挑戦:ハードウェアとソフトウェアの融合が生む課題/Challenge to multidisciplinary incident management: Issues created by the fusion of hardware and software
bitkey
PRO
2
110
統計データで2024年の クラウド・インフラ動向を眺める
ysknsid25
2
840
日本版とグローバル版のモバイルアプリ統合の開発の裏側と今後の展望
miichan
1
130
サイバー攻撃を想定したセキュリティガイドライン 策定とASM及びCNAPPの活用方法
syoshie
3
1.3k
C++26 エラー性動作
faithandbrave
2
740
10分で学ぶKubernetesコンテナセキュリティ/10min-k8s-container-sec
mochizuki875
3
350
Google Cloud で始める Cloud Run 〜AWSとの比較と実例デモで解説〜
risatube
PRO
0
110
Microsoft Azure全冠になってみた ~アレを使い倒した者が試験を制す!?~/Obtained all Microsoft Azure certifications Those who use "that" to the full will win the exam! ?
yuj1osm
2
110
オプトインカメラ:UWB測位を応用したオプトイン型のカメラ計測
matthewlujp
0
180
ハイテク休憩
sat
PRO
2
150
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
45
7k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
28
900
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
Producing Creativity
orderedlist
PRO
341
39k
It's Worth the Effort
3n
183
28k
Building a Scalable Design System with Sketch
lauravandoore
460
33k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
810
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
A Tale of Four Properties
chriscoyier
157
23k
Fashionably flexible responsive web design (full day workshop)
malarkey
405
66k
Designing Experiences People Love
moore
138
23k
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/
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ