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 authentication with Lighthouse
Search
shike
February 16, 2019
Programming
0
1.9k
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.1k
TypeScript + GASでAPIを作る / Build API with TypeScript and GAS
shike0909
0
130
Nuxt + TypeScriptで SPAを作る / Build SPA with Nuxt and TypeScript
shike0909
0
120
Reduxについて / Redux introduction and TODO example with Redux
shike0909
0
89
Other Decks in Programming
See All in Programming
TDDと今まで
kanayannet
0
140
ISUCONってなんだか難しそう……!!でも、初めてのISUCONにPHPで挑戦してきました!
kotomin_m
1
300
SwiftUI, Jetpack Composeの導入で変化した「家族アルバム みてね」のアプリ開発体験
hicka04
6
400
object-oriented-conference-2024
fuwasegu
6
1.9k
Understanding Ast By Looking
inouehi
0
120
WasmOS: Wasmを実行する自作Microkernel
riru
0
370
マイ隙間家具OSSたちのご紹介
karupanerura
2
160
Cloud RunとCloud PubSubでサーバレスなデータ基盤2024 with Terraform / Cloud Run and PubSub with Terraform
shinyorke
7
1.9k
OpenTelemetry のサービスという概念について
azukiazusa1
1
410
オブジェクト指向は必要なのか / Is object-oriented needed?
kishida
27
19k
MySQL のインデックスの種類をおさらいしよう! / overviewing indexes in MySQL
okashoi
0
170
Why 1 + 1 = 2 in Swift?
1plus4
1
250
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
140k
From Idea to $5000 a Month in 5 Months
shpigford
376
45k
For a Future-Friendly Web
brad_frost
170
8.9k
Building Flexible Design Systems
yeseniaperezcruz
317
37k
Stop Working from a Prison Cell
hatefulcrawdad
265
19k
10 Git Anti Patterns You Should be Aware of
lemiorhan
644
57k
A Tale of Four Properties
chriscoyier
150
22k
In The Pink: A Labor of Love
frogandcode
137
21k
Become a Pro
speakerdeck
PRO
8
4.4k
The Cult of Friendly URLs
andyhume
73
5.6k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
185
15k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
225
51k
Transcript
Lighthouseを使った 認証必須のGraphQL API
柴山健吾 株式会社 ・ チーム : 業務: プライベート:
弊社サービス
お話しすること • とは? • での認証をどうするか
Lighthouseとは?
Lighthouse • から エンドポイントを提供するためのライ ブラリ • ファースト • に を定義することで簡単に使える
• が に接続してよしなにやってくれる • を使ったカスタマイズも簡単
の
Lighthouseでの認証
実際に使うとなると 認証が必要なケースが ほとんどでは?
Lighthouseでの認証 • 「 」を使う • の をそのまま使える • の指定の仕方は と同じ
• 複数の を組み合わせることもできる
の
middleware 「auth:api」 • でデフォルトで用意されている • テーブルの カラムとリクエストヘッダー の の値を元に認証を実施
テーブルの定義
None
テンプレート
を使う場合
別の方法(試してません) • 「 」を使う • でデフォルトで使用する を設定する
None
None
まとめ • で簡単に エンドポイントを作成でき る • 超便利 • 認証機能もサクッと作れる •
もっと使いこなしたい
ご清聴ありがとうございました