~/talk

Authorization in GraphQL: Peanut Butter and Chocolate

Talkat GraphQL Summit 2023 · 2023-10-09..10-13· [api-design, security]
slides:none on file

A small Python + Strawberry GraphQL app uses a middleware that inspects the schema and query to infer required checks, prefetches permission data, batches authorization into a single authorization request to Oso, and filters or nulls fields (demo shows repo1 losing collaborators and repo2 hidden). The system reduces N+1 DB permission lookups by planning ahead, supports schema annotations like field-level directives, and proves effective in the live demo with minimal code changes and predictable performance.

AI-written summary · about

  1. 0:00Introduction and demo
  2. 2:11Why authorization is hard
  3. 5:44Challenges in GraphQL authorization
  4. 8:53Magic one authorization approach
  5. 14:10Apollo’s authorization features
  6. 15:57Handling list endpoints
  7. 19:28Is this approach better?
  8. 21:12Feedback and next steps
~/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.