Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Lighthouseを使った認証必須のGraphQL API / GraphQL API au...
Search
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
Transcript
21 slides
Lighthouseを使った 認証必須のGraphQL API
柴山健吾 株式会社 ・ チーム : 業務: プライベート:
弊社サービス
お話しすること • とは? • での認証をどうするか
Lighthouseとは?
Lighthouse • から エンドポイントを提供するためのライ ブラリ • ファースト • に を定義することで簡単に使える
• が に接続してよしなにやってくれる • を使ったカスタマイズも簡単
の
Lighthouseでの認証
実際に使うとなると 認証が必要なケースが ほとんどでは?
Lighthouseでの認証 • 「 」を使う • の をそのまま使える • の指定の仕方は と同じ
• 複数の を組み合わせることもできる
の
middleware 「auth:api」 • でデフォルトで用意されている • テーブルの カラムとリクエストヘッダー の の値を元に認証を実施
テーブルの定義
None
テンプレート
を使う場合
別の方法(試してません) • 「 」を使う • でデフォルトで使用する を設定する
None
None
まとめ • で簡単に エンドポイントを作成でき る • 超便利 • 認証機能もサクッと作れる •
もっと使いこなしたい
ご清聴ありがとうございました
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
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
340
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
170
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
680
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
260
AI-Powered Domain-Driven Design
ziobrando
0
450
AIが実装を担う時代の「技術設計」と「チームマネジメント」
kamina_zzz
2
270
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
130
SODA - FACT BOOK(JP)
sodainc
1
40k
LLM 101
dalinaum
0
490
あなたはMCPの機能を、まだ知らない。
4geru
1
150
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
380
複数ドメインを一つのアプリに統合するFlutterの設計と運用_FlutterKaigi2026登壇資料(須永高弘)
takahirosunaga
0
190
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Bash Introduction
62gerente
615
220k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Claude Code のすすめ
schroneko
67
230k
Making Projects Easy
brettharned
120
6.9k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
480
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
How Software Deployment tools have changed in the past 20 years
geshan
3
35k
First, design no harm
axbom
PRO
2
1.4k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.3k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
480