How to use password validators with Django REST framework
Автор: Yuri Mednikov
Загружено: 2023-02-12
Просмотров: 1623
Without any doubts, password management mechanisms are something that should not be reinvented each and every time. Especially, when it comes to Django, which comes in a “battery included” mode when we talk about authentication. Password validation is one of architecture patterns that allows to mitigate an issue of poor passwords - a common security problem. By default, Django comes with 4 password validators enabled and when you use built-in forms for user signup or password update, they are fired without any additional configuration. However, when it comes to Django REST framework, it is a duty of developers to enable password validators in custom code.
In this video we observe how to use built-in Django password validators with Django REST framework.
00:00 - Start
00:50 - Password management in Django
02:22 - How password validation works with Django forms
03:18 - Password validation is not enabled in Django REST framework by default (the problem)
03:59 - The implementation
05:08 - Refactor the SignupSerializer to use password validators
08:08 - Write tests
09:17 - Test the implementation with an HTTP client
10:20 - Fixing the bug
Source code for this tutorial: https://git.yurimednikov.xyz/yuri/dja...
#django #djangorestframework #pythonprogramming #python3 #webdevelopment #webdeveloper #coding #technology #pythontutorial #codingtutorial #cloudcomputing
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: