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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
shike
February 16, 2019
Programming
2.4k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
170
Nuxt + TypeScriptで SPAを作る / Build SPA with Nuxt and TypeScript
shike0909
0
160
Reduxについて / Redux introduction and TODO example with Redux
shike0909
0
140
Other Decks in Programming
See All in Programming
go-spidermonkeyでAIエージェントのCode Modeを実装する
syumai
3
1.5k
Go × SIMDで高速化するベクトル検索 ~ルーフラインモデルでSIMDが効く境界を探れ! ~
po3rin
1
150
業務時間外もAIに働いてもらう話
colorful12
3
10k
AIに既存システムを理解させる技術 ~レガシーを見捨てないハーネスエンジニアリング入門~
ochtum
0
210
Kiroで創り、AgentCoreで繋ぐ!AWSで実践する「AI-DLC」から「AIエージェント統合」までの最新地図
licux
2
350
Oxlintはいいぞ(続)
yug1224
1
550
MIZARU@SPAJAM2026 第二回予選
1901drama
0
110
PyO3 で既存 Python 評価器を Rust core 化する ー wasm-bindgen でブラウザにも配るための設計
kdash
1
530
Press start. Python's next generation.
willingc
PRO
3
310
新人はどこまで自力でやり、どこからAIに頼るべきか/エンジニア育成に向き合う_先輩たちの悩みと知見共有会
toppan_digital_dev
1
570
LLMは4年分のCompose移行を再現できるのか?実プロダクト279件のXMLで探る自動化の境界線
makun
0
440
Swift愛好会100回記念 第1回を振り返る
jollyjoester
0
120
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
4.7k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
230
Amusing Abliteration
ianozsvald
1
290
Ethics towards AI in product and experience design
skipperchong
2
360
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
340
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.1k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
200
The SEO identity crisis: Don't let AI make you average
varn
0
550
Transcript
Lighthouseを使った 認証必須のGraphQL API
柴山健吾 株式会社 ・ チーム : 業務: プライベート:
弊社サービス
お話しすること • とは? • での認証をどうするか
Lighthouseとは?
Lighthouse • から エンドポイントを提供するためのライ ブラリ • ファースト • に を定義することで簡単に使える
• が に接続してよしなにやってくれる • を使ったカスタマイズも簡単
の
Lighthouseでの認証
実際に使うとなると 認証が必要なケースが ほとんどでは?
Lighthouseでの認証 • 「 」を使う • の をそのまま使える • の指定の仕方は と同じ
• 複数の を組み合わせることもできる
の
middleware 「auth:api」 • でデフォルトで用意されている • テーブルの カラムとリクエストヘッダー の の値を元に認証を実施
テーブルの定義
None
テンプレート
を使う場合
別の方法(試してません) • 「 」を使う • でデフォルトで使用する を設定する
None
None
まとめ • で簡単に エンドポイントを作成でき る • 超便利 • 認証機能もサクッと作れる •
もっと使いこなしたい
ご清聴ありがとうございました