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
Lighthouseを使った認証必須のGraphQL API / GraphQL API au...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
shike
February 16, 2019
Programming
2.3k
0
Share
Lighthouseを使った認証必須のGraphQL API / GraphQL API authentication with Lighthouse
2/16 Laravel JP ConferenceでLTを行った際のスライドです。
shike
February 16, 2019
More Decks by shike
See All by shike
Code Generatorを作ってコンポーネントを自動生成しよう / Let's make code generator
shike0909
1
2.3k
TypeScript + GASでAPIを作る / Build API with TypeScript and GAS
shike0909
0
160
Nuxt + TypeScriptで SPAを作る / Build SPA with Nuxt and TypeScript
shike0909
0
150
Reduxについて / Redux introduction and TODO example with Redux
shike0909
0
130
Other Decks in Programming
See All in Programming
From Formal Specification to Property Based Test
ohbarye
0
470
実践CRDT
tamadeveloper
0
600
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
CDK Deployのための ”反響定位”
watany
5
900
Offline should be the norm: building local-first apps with CRDTs & Kotlin Multiplatform
renaudmathieu
0
230
Going Multiplatform with Your Android App (Android Makers 2026)
zsmb
2
460
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
190
Explore CoroutineScope
tomoeng11
0
120
AI-DLC Deep Dive
yuukiyo
9
5k
Vibe NLP for Applied NLP
inesmontani
PRO
0
520
「話せることがない」を乗り越える 〜日常業務から登壇テーマをつくる思考法〜
shoheimitani
4
900
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
300
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
160
Being A Developer After 40
akosma
91
590k
How STYLIGHT went responsive
nonsquared
100
6.1k
Documentation Writing (for coders)
carmenintech
77
5.3k
How to train your dragon (web standard)
notwaldorf
97
6.6k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.5k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
270
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
380
The Cost Of JavaScript in 2023
addyosmani
55
9.9k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.1k
Test your architecture with Archunit
thirion
1
2.2k
Transcript
Lighthouseを使った 認証必須のGraphQL API
柴山健吾 株式会社 ・ チーム : 業務: プライベート:
弊社サービス
お話しすること • とは? • での認証をどうするか
Lighthouseとは?
Lighthouse • から エンドポイントを提供するためのライ ブラリ • ファースト • に を定義することで簡単に使える
• が に接続してよしなにやってくれる • を使ったカスタマイズも簡単
の
Lighthouseでの認証
実際に使うとなると 認証が必要なケースが ほとんどでは?
Lighthouseでの認証 • 「 」を使う • の をそのまま使える • の指定の仕方は と同じ
• 複数の を組み合わせることもできる
の
middleware 「auth:api」 • でデフォルトで用意されている • テーブルの カラムとリクエストヘッダー の の値を元に認証を実施
テーブルの定義
None
テンプレート
を使う場合
別の方法(試してません) • 「 」を使う • でデフォルトで使用する を設定する
None
None
まとめ • で簡単に エンドポイントを作成でき る • 超便利 • 認証機能もサクッと作れる •
もっと使いこなしたい
ご清聴ありがとうございました