Skip to content

Conversation

aparamon
Copy link

This extends Client.validate_scopes() to additionally take request argument (and, essentially, request.user) so both scopes and user are available in validation/authorization logic.

@lepture
Copy link
Owner

lepture commented Dec 15, 2018

The problem is that it is not compatible with old API.

@aparamon
Copy link
Author

aparamon commented Dec 15, 2018

@lepture Thanks for the review! What if introduce something like
Client.validate_request_scopes(self, request, scopes, *args, **kwargs)
taking precedence over validate_scopes if present?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants