~/lightning

Absinthe Authentication

Lightningat Code Elixir LDN 2018 · on Thursday, 2018-08-16· [security, elixir-and-erlang]
slides:none on file

Adds an authentication plug before Absinthe plug that extracts an Authorization header (often a JWT), decodes it with an upstream plug, and inserts a map like conn.private.absinthe.context with :current_user or a guest/null into the GraphQL context. Resolvers receive that context as their second arg and can pattern-match in resolvers to return public fields, raise an error for unauthorized access, or allow admins to see secrets. Uses per-field auth instead of transport-level status codes.

AI-written summary · about

~/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.