#NEWLINE# def validate_response_type( self , client_id , response_type , client , request , * args , **kwargs ) : #NEWLINE# #INDENT# 'Ensure client is authorized to use the response type requested.\n\n        It will allow any of the two (`code`, `token`) response types by\n        default. Implemented `allowed_response_types` for client object\n        to authorize the request.\n        ' #NEWLINE# if ( response_type not in ( 'code' , 'token' ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if hasattr ( client , 'allowed_response_types' ) : #NEWLINE# #INDENT# return ( response_type in client . allowed_response_types ) #NEWLINE# #UNINDENT# return True