Restricting Access with Permissions (Django Rest framework)

  Рет қаралды 31,400

CodingWithMitch

CodingWithMitch

Күн бұрын

Django Rest-framework playlist: bit.ly/2JI909W
High quality programming courses: codingwithmitc...
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: codingwithmitc...
Instagram: / codingwithmitch

Пікірлер: 21
@pqudah
@pqudah 2 жыл бұрын
I searched for about an hour on how to implement permissions in function based views. Thank you!
@rubenbiskupec8442
@rubenbiskupec8442 2 жыл бұрын
I was looking for something like for a whole day, thanks this was clear to the point!!
@aashayamballi
@aashayamballi 5 жыл бұрын
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
@codinginflow
@codinginflow 5 жыл бұрын
your thumbnail game is on point
@codingwithmitch
@codingwithmitch 5 жыл бұрын
Hired Joshua Fluke as thumbnail consultant
@yeswanthgotti2427
@yeswanthgotti2427 3 жыл бұрын
Thanks, Mitch. But what about the "tests" for the code u have discussed.
@bricegnanago409
@bricegnanago409 4 жыл бұрын
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)
@davidgallego1216
@davidgallego1216 4 жыл бұрын
Thank you from Colombia
@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
@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
@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?
@ivonherms
@ivonherms 4 жыл бұрын
After adding restrictions to my project, now I can't create a new user. Please help
@amanbagrecha
@amanbagrecha 3 жыл бұрын
when i do request.user, i always get AnonymousUser. Why that might be the case?
@aashayamballi
@aashayamballi 5 жыл бұрын
Thank you :)
@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.
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 204 М.
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 18 МЛН
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
GET, UPDATE, POST, DELETE - Function Views (Django REST framework)
17:45
Learn Django - Class-Based Permission Checks
27:09
Very Academy
Рет қаралды 26 М.
How to Use Django REST Framework Permissions
11:06
Pretty Printed
Рет қаралды 40 М.
Register a New User (Django Rest framework)
15:05
CodingWithMitch
Рет қаралды 81 М.
Django Rest Framework | Serializers & CRUD
22:40
Dennis Ivy
Рет қаралды 388 М.
Django Permissions | Model Level | Views and Templates
23:30
Very Academy
Рет қаралды 18 М.
Django REST Framework Oversimplified
9:43
Dennis Ivy
Рет қаралды 332 М.
Django | CSRF Token
7:55
Django road
Рет қаралды 17 М.
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 204 М.