Skip to main content
Loading page…
Python Mastery
Chapter 35
Lesson 3 of 4
Authentication & Permissions
Contents
Notes
Tutor
Concept
Authentication vs Authorization
Loading activity…
Previous
1 / 8
Continue
Contents
Notes
Discussion
Tutor
24 min
8 activities
0 of 8 done
In this lesson
1
Authentication vs Authorization
2
Token Authentication Setup
3
JWT with djangorestframework-simplejwt
4
Custom Permission Classes
5
Throttling — Rate Limiting
6
Classify Auth & Permission Concepts
7
Object-Level Permission Gotcha
8
Auth & Permissions Quick Check
Objectives
Learner can distinguish between authentication and authorization in DRF
Learner can configure Session, Token, and JWT (simplejwt) authentication
Learner can apply built-in permission classes (IsAuthenticated, IsAdminUser, AllowAny)
Learner can write a custom permission class
Learner can configure throttling to rate-limit endpoints
Learner can apply auth and permission at the view level vs globally
Further reading
Django REST Framework documentation
Chapter 35 · REST APIs with Django REST Framework
Serializers
Views, ViewSets & Routers
Authentication & Permissions
A Complete REST API
Previous: Views, ViewSets & Routers
Next: A Complete REST API