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.1k
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.2k
TypeScript + GASでAPIを作る / Build API with TypeScript and GAS
shike0909
0
140
Nuxt + TypeScriptで SPAを作る / Build SPA with Nuxt and TypeScript
shike0909
0
130
Reduxについて / Redux introduction and TODO example with Redux
shike0909
0
100
Other Decks in Programming
See All in Programming
watsonx.ai Dojo #6 継続的なAIアプリ開発と展開
oniak3ibm
PRO
0
140
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
910
EC2からECSへ 念願のコンテナ移行と巨大レガシーPHPアプリケーションの再構築
sumiyae
3
560
Fibonacci Function Gallery - Part 1
philipschwarz
PRO
0
270
QA環境で誰でも自由自在に現在時刻を操って検証できるようにした話
kalibora
1
130
php-conference-japan-2024
tasuku43
0
410
月刊 競技プログラミングをお仕事に役立てるには
terryu16
1
1.2k
ドメインイベント増えすぎ問題
h0r15h0
2
550
2025.01.17_Sansan × DMM.swift
riofujimon
0
180
為你自己學 Python
eddie
0
510
Monixと常駐プログラムの勘どころ / Scalaわいわい勉強会 #4
stoneream
0
340
PHPで学ぶプログラミングの教訓 / Lessons in Programming Learned through PHP
nrslib
4
1k
Featured
See All Featured
Writing Fast Ruby
sferik
628
61k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.2k
Making the Leap to Tech Lead
cromwellryan
133
9k
The Cost Of JavaScript in 2023
addyosmani
46
7.2k
The Cult of Friendly URLs
andyhume
78
6.1k
Learning to Love Humans: Emotional Interface Design
aarron
274
40k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2.1k
Music & Morning Musume
bryan
46
6.3k
Docker and Python
trallard
43
3.2k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.5k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
950
Transcript
Lighthouseを使った 認証必須のGraphQL API
柴山健吾 株式会社 ・ チーム : 業務: プライベート:
弊社サービス
お話しすること • とは? • での認証をどうするか
Lighthouseとは?
Lighthouse • から エンドポイントを提供するためのライ ブラリ • ファースト • に を定義することで簡単に使える
• が に接続してよしなにやってくれる • を使ったカスタマイズも簡単
の
Lighthouseでの認証
実際に使うとなると 認証が必要なケースが ほとんどでは?
Lighthouseでの認証 • 「 」を使う • の をそのまま使える • の指定の仕方は と同じ
• 複数の を組み合わせることもできる
の
middleware 「auth:api」 • でデフォルトで用意されている • テーブルの カラムとリクエストヘッダー の の値を元に認証を実施
テーブルの定義
None
テンプレート
を使う場合
別の方法(試してません) • 「 」を使う • でデフォルトで使用する を設定する
None
None
まとめ • で簡単に エンドポイントを作成でき る • 超便利 • 認証機能もサクッと作れる •
もっと使いこなしたい
ご清聴ありがとうございました