#NEWLINE# def read_registration( self , authn , request , **kwargs ) : #NEWLINE# #INDENT# '\n        Read all information this server has on a client.\n        Authorization is done by using the access token that was return as\n        part of the client registration result.\n\n        :param authn: The Authorization HTTP header\n        :param request: The query part of the URL\n        :param kwargs: Any other arguments\n        :return:\n        ' #NEWLINE# logger . debug ( ( 'authn: %s, request: %s' % ( authn , request ) ) ) #NEWLINE# if ( not authn . startswith ( 'Bearer ' ) ) : #NEWLINE# #INDENT# return self . _error_response ( 'invalid_request' ) #NEWLINE# #UNINDENT# token = authn [ len ( 'Bearer ' ) : ] #NEWLINE# client_id = self . cdb [ token ] #NEWLINE# _info = parse_qs ( request ) #NEWLINE# assert ( _info [ 'client_id' ] [ 0 ] == client_id ) #NEWLINE# logger . debug ( ( "Client '%s' reads client info" % client_id ) ) #NEWLINE# args = dict ( [ ( k , v ) for ( k , v ) in self . cdb [ client_id ] . items ( ) if ( k in RegistrationResponse . c_param ) ] ) #NEWLINE# self . comb_uri ( args ) #NEWLINE# response = RegistrationResponse ( ** args ) #NEWLINE# return Response ( response . to_json ( ) , content = 'application/json' , headers = [ ( 'Cache-Control' , 'no-store' ) ] )