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
shike
February 16, 2019
Programming
0
2.3k
Lighthouseを使った認証必須のGraphQL API / GraphQL API authentication with Lighthouse
2/16 Laravel JP ConferenceでLTを行った際のスライドです。
shike
February 16, 2019
Tweet
Share
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
150
Nuxt + TypeScriptで SPAを作る / Build SPA with Nuxt and TypeScript
shike0909
0
140
Reduxについて / Redux introduction and TODO example with Redux
shike0909
0
130
Other Decks in Programming
See All in Programming
浮動小数の比較について
kishikawakatsumi
0
350
Ruby x Terminal
a_matsuda
5
490
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1.1k
今、アーキテクトとして 品質保証にどう関わるか
nealle
0
190
モジュラモノリスにおける境界をGoのinternalパッケージで守る
magavel
0
3.3k
Raku Raku Notion 20260128
hareyakayuruyaka
0
420
Go Conference mini in Sendai 2026 : Goに新機能を提案し実装されるまでのフロー徹底解説
yamatoya
0
450
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
7
1.8k
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
2.1k
CSC307 Lecture 09
javiergs
PRO
1
850
Go 1.26でのsliceのメモリアロケーション最適化 / Go 1.26 リリースパーティ #go126party
mazrean
1
300
オブザーバビリティ駆動開発って実際どうなの?
yohfee
2
620
Featured
See All Featured
Everyday Curiosity
cassininazir
0
140
sira's awesome portfolio website redesign presentation
elsirapls
0
170
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
69
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
230
Un-Boring Meetings
codingconduct
0
220
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
170
ラッコキーワード サービス紹介資料
rakko
1
2.5M
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Test your architecture with Archunit
thirion
1
2.2k
Designing Experiences People Love
moore
144
24k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
450
Transcript
Lighthouseを使った 認証必須のGraphQL API
柴山健吾 株式会社 ・ チーム : 業務: プライベート:
弊社サービス
お話しすること • とは? • での認証をどうするか
Lighthouseとは?
Lighthouse • から エンドポイントを提供するためのライ ブラリ • ファースト • に を定義することで簡単に使える
• が に接続してよしなにやってくれる • を使ったカスタマイズも簡単
の
Lighthouseでの認証
実際に使うとなると 認証が必要なケースが ほとんどでは?
Lighthouseでの認証 • 「 」を使う • の をそのまま使える • の指定の仕方は と同じ
• 複数の を組み合わせることもできる
の
middleware 「auth:api」 • でデフォルトで用意されている • テーブルの カラムとリクエストヘッダー の の値を元に認証を実施
テーブルの定義
None
テンプレート
を使う場合
別の方法(試してません) • 「 」を使う • でデフォルトで使用する を設定する
None
None
まとめ • で簡単に エンドポイントを作成でき る • 超便利 • 認証機能もサクッと作れる •
もっと使いこなしたい
ご清聴ありがとうございました