~/talk

OAuth2 and Django, What You Should Know

Talkat DjangoCon US 2014 · 2014-08-30..09-06· [django, security]
speakerdeck:jlafon
slides:none on file

Explains how the authorization code flow gives a Django server a token without exposing user credentials: redirect with client_id, scope, state parameter and a registered redirect_uri, exchange the one‑time code plus client secret for an access token over TLS, and use Bearer tokens in Authorization headers. Recommends python-social-auth for consumers, django-oauth-toolkit (backed by oauthlib) for provider/resource servers, and token validation via an introspection endpoint or out‑of‑band sync; warns about missing state, unvalidated redirects, non‑expiring codes, and lack of TLS.

AI-written summary · about

  1. 0:00Intro
  2. 1:16Intro to OAuth
  3. 4:00OAuth 2.0 Vocabulary
  4. 6:02Before the flow
  5. 7:12Client to Auth. Server Redirect
  6. 9:04Authorization Code Flow
  7. 9:17Redirect back to clent
  8. 10:32Finally, a token
  9. 11:35What do I do with a token?
  10. 12:57Integrating OAuth 2
  11. 14:28What the spec. doesn't say
  12. 15:19OAuth 2 Packages for Django
  13. 18:53Python Social Auth Django Support
  14. 19:20Python Social Auth Summary
  15. 20:08Django OAuth Toolkit Views
  16. 20:34Django OAuth Toolkit with DRF
  17. 22:17Separate Django Resource Server
  18. 22:53Solution 1: Token validation view
~/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.