~/lightning

Absinthe Authentication

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

Adds authentication by inserting a plug before Absinthe that extracts credentials (e.g. Authorization header or parsed JWT) and writes a map into conn.private.absinthe context, e.g. %{current_user: user} or %{current_user: nil} for guests, instead of relying on HTTP status codes. Resolvers receive the context as their second arg and can pattern-match in resolvers to allow public fields, return errors for protected ones, or grant admin-only data. This is simple, per-field authorization that actually works.

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.