flask_oauthlib/provider/oauth2.py
def validate_response_type(self, client_id, response_type, client, request,
                               *args, **kwargs):
        """Ensure client is authorized to use the response type requested.

        It will allow any of the two (`code`, `token`) response types by
        default. Implemented `allowed_response_types` for client object
        to authorize the request.
        """
        if response_type not in ('code', 'token'):
            return False

        if hasattr(client, 'allowed_response_types'):
            return response_type in client.allowed_response_types
        return True
def validate_response_type(self, client_id, response_type, client, request,
                               *args, **kwargs):
        if response_type not in ('code', 'token'):
            return False

        if hasattr(client, 'allowed_response_types'):
            return response_type in client.allowed_response_types
        return True
def validate_response_type ( self , client_id , response_type , client , request , * args , * * kwargs ) : if response_type not in ( 'code' , 'token' ) : return False if hasattr ( client , 'allowed_response_types' ) : return response_type in client . allowed_response_types return True
Ensure client is authorized to use the response type requested.

        It will allow any of the two (`code`, `token`) response types by
        default. Implemented `allowed_response_types` for client object
        to authorize the request.
Ensure client is authorized to use the response type requested .