~/talk

Strategies for testing Authentication and Authorization Flows

Talkat Carolina Code Conference 2024 · 2024-08-23..08-24· [testing, security]
slides:none on file

Practical steps for reliably testing auth: use programmatic login with the Stytch Node SDK and Cypress tasks so tests skip slow UI OAuth flows, generate and provision ~10 ephemeral users per run, and cache and reuse sessions to cut repeated logins. Create isolated test branches of your Postgres database via Neon or Supabase in CI, seed and tear down data, prefer live APIs with minimal mocks, and automate user cleanup and validation to keep suites stable and fast.

AI-written summary · about

  1. 0:00Introduction
  2. 1:23Testing challenges
  3. 2:46Programmatic login
  4. 4:36Single auth method
  5. 5:18Cache sessions
  6. 6:43Ephemeral data
  7. 9:10Mocks sparingly
  8. 9:31Planning for success
~/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.