π Authentication & Authorization π
Posted on Mar 31st, 2021
Todayβs Topics
- Setting permissions classes in views in DRF
- Token authentication in DRF with djoser
- CORS headers
- Full-text search
π― Project
Keep on with QuestionBox! You should be able to return questions and answers at least by tomorrow.
π Read | πΊ Watch | π§ Listen
- Finally Understand auth in DRF - a Will Vincent talk -> Will isnβt using the djoser library but he does a great job of reviewing different auth strategies and why you would choose one or the other. Watch this for a better understanding and overview of auth.
π Resources
Permissions
Authentication
- Djoser documentation
- DRF docs: Token-based authentication
- The Ultimate Tutorial for Django REST Framework: Login and Authentication
CORS
Filtering and search
- DRF - Filtering -> Pretty useful reference. Includes how to filter your output based on GET parameters, which you will want to do for using search terms.
- Django docs: full-text search & the search lookup
- Blog post with more on full-text search