Тёмный

Restricting Access with Permissions (Django Rest framework) 

CodingWithMitch
Подписаться 145 тыс.
Просмотров 31 тыс.
50% 1

Django Rest-framework playlist: bit.ly/2JI909W
High quality programming courses: codingwithmitch.com/courses
In this video I show you how to leverage the django rest framework permissions classes to restrict access to the rest api. You can restrict users from loading specific views by checking for an authentication token (or any other django rest framework authentication method).
#djangorestframework #restapi
Code: codingwithmitch.com/courses/b...
Instagram: / codingwithmitch

Наука

Опубликовано:

 

17 июл 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@pqudah
@pqudah 2 года назад
I searched for about an hour on how to implement permissions in function based views. Thank you!
@aashayamballi
@aashayamballi 4 года назад
It was very clear and concise. Looking forward for new tutorials. Keep the good work. Thank you :)
@sarangdeshpande8001
@sarangdeshpande8001 4 года назад
This kind of the tutorial I was looking for. Thanks Mitch
@rubenbiskupec8442
@rubenbiskupec8442 2 года назад
I was looking for something like for a whole day, thanks this was clear to the point!!
@codinginflow
@codinginflow 5 лет назад
your thumbnail game is on point
@codingwithmitch
@codingwithmitch 5 лет назад
Hired Joshua Fluke as thumbnail consultant
@davidgallego1216
@davidgallego1216 3 года назад
Thank you from Colombia
@yeswanthgotti2427
@yeswanthgotti2427 3 года назад
Thanks, Mitch. But what about the "tests" for the code u have discussed.
@bricegnanago409
@bricegnanago409 3 года назад
Thank you for this video ! How to manage many category of users with permissions ?
@boyswillbeboys6177
@boyswillbeboys6177 3 года назад
Use the built-in Groups, and then in views use: permission_classes = (permissions.DjangoModelPermissionsOrAnonReadOnly)
@taukirkhan3417
@taukirkhan3417 4 года назад
Thank you so much, Is there any way to modified token response,like ({ 'detail': 'Authe........'}) to other format, because I wanna make consistence Response format .My all response formate is like { 'data': {},'msg': '....','status' : '.....'}. Please reply
@taukirkhan3417
@taukirkhan3417 4 года назад
Secondly,Is there any way to apply authentication to a group of URLs so that I will not have to write again and again "IsAuthenticated" decorator. For instance, Other frameworks provide middleware to use for group url/individual URL which minimize the coding pain. Please reply
@aashayamballi
@aashayamballi 4 года назад
Thank you :)
@ivonherms
@ivonherms 3 года назад
After adding restrictions to my project, now I can't create a new user. Please help
@FahmiEshaq
@FahmiEshaq 4 года назад
What authentication will IsAuthenticated consider if we have two authentications SessionAuthentication and TokenAuthentication?
@sarveshyadav01
@sarveshyadav01 4 года назад
both
@jameskulu
@jameskulu 3 года назад
I got " "detail": "Authentication credentials were not provided."". this message while registering new user. Can anyone knows what has happen?
@matiascoco99
@matiascoco99 3 года назад
@Ives Furtado Hey Ives!, i realised that you solve this problem of authentications. The thing is that i cant figure out how to change it. How did yo acomplish that?
@amanbagrecha
@amanbagrecha 3 года назад
when i do request.user, i always get AnonymousUser. Why that might be the case?
@priyapatil6681
@priyapatil6681 4 года назад
sir forward new video for edit,delete,add,read perrmissions in django
@underlecht
@underlecht 2 года назад
Responses should be standardized. Any frontender would kick you ass for such responses.
Далее
▼ЧЁРНАЯ МАГИЯ 🔮
31:15
Просмотров 436 тыс.
Django Permissions | Model Level | Views and Templates
23:30
Getting Started With Django REST Framework
26:31
Просмотров 199 тыс.
Token Authentication with Django REST Framework | 2023
1:14:47
Django Guardian | Object Level | View and Templates
29:28
Django API Authentication using JWT Tokens
37:06
Просмотров 170 тыс.
Don't throw exceptions in C#. Do this instead
18:13
Просмотров 251 тыс.
Игровой Комп с Авито за 4500р
1:00