~/talk

Understanding Django authentication

Talkat DjangoCon US 2019 · 2019-09-22..09-27· [django, security]
slides:none on file

Walks through Django’s actual authentication plumbing: how authenticate() and authentication backends iterate and return a user, the default ModelBackend password check and timing fix, and how login stores the user id and backend in the session store (database by default). Demonstrates session middleware behavior, when sessions are created, saved, and expired, how login performs session key rotation while preserving data, and how logout flushes the session so the user becomes anonymous. Shows code paths and worked examples.

AI-written summary · about

  1. 0:00Start
  2. 1:36Authentication in Arts
  3. 5:00Authentication Types
  4. 6:13Authentication Factors
  5. 7:31Auth framework
  6. 8:47Implementation
  7. 13:25Session Model
  8. 13:47Session Store Object
  9. 17:23Sessions and Authentication
  10. 19:15Unauthenticated user with session change
  11. 20:23User authentication
~/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.