def parse_implicit_response(uri, state=None, scope=None):
 fragment = urlparse.urlparse(uri).fragment
 params = dict(urlparse.parse_qsl(fragment, keep_blank_values=True))
 validate_token_parameters(params, scope)
 if (state and (params.get(u'state', None) != state)):
  raise ValueError('Mismatching or missing state in params.')
 return params

def parse_implicit_response ( uri , state = None , scope = None ) : fragment = urlparse . urlparse ( uri ) . fragment params = dict ( urlparse . parse_qsl ( fragment , keep_blank_values = True ) ) validate_token_parameters ( params , scope ) if ( state and ( params . get ( u'state' , None ) != state ) ) : raise ValueError ( 'Mismatching or missing state in params.' ) return params
parse the implicit token response uri into a dict .