Proper way to check permissions for client credential grant type #9201
Unanswered
binbrain
asked this question in
Question & Answer
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since client credentials grant type does not authenticate a user, what should the permission check be in the permission_class? If I hook into the has_permission function and inspect the request object, I see its not as simple as just returning True for the following reasons. (On latest 3.14.0 FYI)
2 is the concerning part and why you can't just return True. I'm wondering if permissions.py needs some special logic to handle the client credential Oauth2 flow? Or at least an abstract method to suggest what to do in this case.
Beta Was this translation helpful? Give feedback.
All reactions