def __init__(self, conv): PostRequest.__init__(self, conv) for arg in dynreg.RegistrationRequest().parameters(): try: val = conv.client_config["provider_info"][arg] except KeyError: try: val = conv.client_config["preferences"][arg] except KeyError: try: val = conv.client_config["client_info"][arg] except KeyError: try: val = conv.client_config["client_registration"][ arg] except KeyError: continue self.request_args[arg] = copy.copy(val) try: del self.request_args["key_export_url"] except KeyError: pass # verify the registration info self.tests["post"].extend([RegistrationInfo, CheckHTTPResponse])
def __init__(self, conv): PostRequest.__init__(self, conv) for arg in dynreg.RegistrationRequest().parameters(): try: val = conv.client_config["provider_info"][arg] except KeyError: try: val = conv.client_config["preferences"][arg] except KeyError: try: val = conv.client_config["client_info"][arg] except KeyError: try: val = conv.client_config["client_registration"][arg] except KeyError: continue self.request_args[arg] = copy.copy(val) try: del self.request_args["key_export_url"] except KeyError: pass # verify the registration info self.tests["post"].extend([RegistrationInfo, CheckHTTPResponse])
def __init__(self, conv): PostRequest.__init__(self, conv) _reg_info = conv.client_config["registration_info"] for arg in dynreg.RegistrationRequest().parameters(): if arg in _reg_info: self.request_args[arg] = _reg_info[arg] # verify the registration info self.tests["post"].append(RegistrationInfo)
def __init__(self, conv): PostRequest.__init__(self, conv) for arg in dynreg.RegistrationRequest().parameters(): if arg in conv.client_config: self.request_args[arg] = conv.client_config[arg] elif arg in conv.client_config["preferences"]: self.request_args[arg] = conv.client_config["preferences"][arg] try: del self.request_args["key_export_url"] except KeyError: pass # verify the registration info self.tests["post"].append(RegistrationInfo)
def __init__(self, conv): PostRequest.__init__(self, conv) for arg in message.RegistrationRequest().parameters(): try: val = conv.client_config["provider_info"][arg] except KeyError: try: val = conv.client_config["preferences"][arg] except KeyError: try: val = conv.client_config["client_info"][arg] except KeyError: try: val = conv.client_config["client_registration"][arg] except KeyError: continue self.request_args[arg] = copy.copy(val) # verify the registration info self.tests["post"].append(RegistrationInfo)
def __init__(self, conv): PostRequest.__init__(self, conv) for arg in message.RegistrationRequest().parameters(): try: val = conv.client_config["provider_info"][arg] except KeyError: try: val = conv.client_config["preferences"][arg] except KeyError: try: val = conv.client_config["client_info"][arg] except KeyError: try: val = conv.client_config["client_registration"][ arg] except KeyError: continue self.request_args[arg] = copy.copy(val) # verify the registration info self.tests["post"].append(RegistrationInfo)
def __init__(self, conv): PostRequest.__init__(self, conv) self.tests["post"] = []