flask_oauthlib/provider/oauth2.py
def validate_scopes(self, client_id, scopes, client, request,
                        *args, **kwargs):
        """Ensure the client is authorized access to requested scopes."""
        if hasattr(client, 'validate_scopes'):
            return client.validate_scopes(scopes)
        return set(client.default_scopes).issuperset(set(scopes))
def validate_scopes(self, client_id, scopes, client, request,
                        *args, **kwargs):
        if hasattr(client, 'validate_scopes'):
            return client.validate_scopes(scopes)
        return set(client.default_scopes).issuperset(set(scopes))
def validate_scopes ( self , client_id , scopes , client , request , * args , * * kwargs ) : if hasattr ( client , 'validate_scopes' ) : return client . validate_scopes ( scopes ) return set ( client . default_scopes ) . issuperset ( set ( scopes ) )
Ensure the client is authorized access to requested scopes.
Ensure the client is authorized access to requested scopes .