~/talk

Authentication and Authorization in GraphQL

Talkat BuzzJS 3.1 2018 · 2018-06-14..06-15· [graphql, security]
slides:none on file

Shows concrete patterns: extract JWT from headers, verify and attach a context object with user to every resolver; use a reusable checkRole wrapper that throws Apollo's AuthenticationError or ForbiddenError; delegate authorization into model functions or existing REST APIs by passing the request through; implement field- or type-level rules with custom directives; monitor and cache queries with Apollo Engine; prototype running GraphQL on the edge using Cloudflare Workers to cache full query responses for large-scale, high-latency users.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 3:11GraphQL overview and benefits
  3. 17:42Authentication and authorization basics
  4. 27:43Authorization in resolvers and models
  5. 31:42Custom directives and external authorization
  6. 34:33GraphQL for next billion users
  7. 38:11Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.