Finally Understand Authentication in Django REST Framework
summary
Explains the four built‑in Django REST Framework auth modes and why there are four built‑in ways and over a dozen third‑party packages, demonstrates basic, session, token and JWT flows, and shows the concrete gotcha that DRF’s browsable API needs SessionAuth alongside TokenAuth. Builds a working user system with registration, password reset/confirm, social auth and sign‑up/login/logout endpoints using django‑rest‑auth and django‑allauth, publishes complete repo code and notes which approaches scale or expire and which do not.
AI-written summary · about
chapters (24)
- 0:00Start
- 2:14How Do I Build an Api with Django Django Rest Framework
- 4:30Django for Beginners
- 6:00Api Application Programming Interface
- 7:44Django Rest Framework
- 10:38How Does Http Work
- 11:05Http Http Verbs
- 11:20Common Http Verbs
- 13:08Do I Have To Have a Header on a Resp on a Request
- 15:59Http Response
- 16:30What's a Rest Api Endpoint
- 19:14Authentication
- 20:22Basic Authentication
- 22:22Add Authentication
- 22:34Pros and Cons
- 23:08Cookies and Sessions
- 24:20Django Rest Framework and Pros and Cons
- 25:19Token Authentication
- 27:04Cons
- 28:20Javascript Web Tokens
- 29:06Verify Signature
- 32:17New Project
- 32:46Custom User Model
- 36:26Sign Up
related talks
25mUnderstanding Django authentication
27mWhat You Should Know About Django REST Framework
26mOAuth2 and Django, What You Should Know
26mDeveloping a Single Sign On Service using Django
26mWhat it's really like building RESTful APIs with Django
26mIntegrating 2 factor authentication into your project
37mDjango + Keycloak: trust authentication to the professionals
21mNever build a login again : The art of using Social Auth with Django
