~/talk

External authentication for Django projects

Talkat EuroPython 2015 · 2015-07-20..07-26· [python, security]
links:none on file
slides:none on file

Django 1.9 adds PersistentRemoteUserMiddleware so external auth from an Apache front end survives normal sessions; the demo uses FreeIPA + Kerberos (GSSAPI) and SAML via mod_auth_mellon, with SSSD and mod_lookup_identity to map attributes. Accounts (Bob, Penny) are auto-created, email and names are populated, and group membership propagates into Django groups using an X-prefix mapping; the prototype works end to end in the demo, including login redirects and permission assignment.

AI-written summary · about

  1. 0:00Intro
  2. 0:22Situation
  3. 2:43Problem statement
  4. 4:06Simple setup
  5. 6:44Authentication in frontend HTTP server
  6. 8:05Limits of RemateuserMiddleware
  7. 9:20Authentication on single URL
  8. 12:16Additional user attributes
  9. 14:01Consuming attributes in Django
  10. 17:29Group-based authorization
  11. 20:35Populating REMOTE_USER_GROUP_+
  12. 27:12Conclusion
~/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.