Small fixes for the ecp case.
These fixes orgin from making freeradius_ecp start working.
This commit is contained in:
		
							
								
								
									
										44
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										44
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -25,3 +25,47 @@ tmp*
 | 
			
		||||
*egg-info*
 | 
			
		||||
.coverage
 | 
			
		||||
*.tmpl
 | 
			
		||||
 | 
			
		||||
example/idp3/htdocs/login.mako
 | 
			
		||||
 | 
			
		||||
example/idp3/idp.py
 | 
			
		||||
 | 
			
		||||
example/idp3/idp.xml
 | 
			
		||||
 | 
			
		||||
example/idp3/idp_conf.py
 | 
			
		||||
 | 
			
		||||
example/idp3/idp_err.xml
 | 
			
		||||
 | 
			
		||||
example/idp3/idp_user.py
 | 
			
		||||
 | 
			
		||||
example/idp3/metadata.xml
 | 
			
		||||
 | 
			
		||||
example/idp3/modules/login.mako.py
 | 
			
		||||
 | 
			
		||||
example/idp3/modules/root.mako.py
 | 
			
		||||
 | 
			
		||||
example/idp3/pki/create_key.sh
 | 
			
		||||
 | 
			
		||||
example/idp3/pki/mycert.pem
 | 
			
		||||
 | 
			
		||||
example/idp3/pki/mykey.pem
 | 
			
		||||
 | 
			
		||||
example/idp3/templates/root.mako
 | 
			
		||||
 | 
			
		||||
example/sp2/attributemaps/basic.py
 | 
			
		||||
 | 
			
		||||
example/sp2/attributemaps/saml_uri.py
 | 
			
		||||
 | 
			
		||||
example/sp2/attributemaps/shibboleth_uri.py
 | 
			
		||||
 | 
			
		||||
example/sp2/pki/mycert.pem
 | 
			
		||||
 | 
			
		||||
example/sp2/pki/mykey.pem
 | 
			
		||||
 | 
			
		||||
example/sp2/sp.py
 | 
			
		||||
 | 
			
		||||
example/sp2/sp.xml
 | 
			
		||||
 | 
			
		||||
example/sp2/sp_conf.py
 | 
			
		||||
 | 
			
		||||
example/sp2/who.ini
 | 
			
		||||
 
 | 
			
		||||
@@ -67,6 +67,7 @@ class Client(Entity):
 | 
			
		||||
        config.key_file = key_file
 | 
			
		||||
        config.cert_file = cert_file
 | 
			
		||||
        config.ca_certs = ca_certs
 | 
			
		||||
        config.xmlsec_binary = xmlsec_binary
 | 
			
		||||
 | 
			
		||||
        Entity.__init__(self, "sp", config)
 | 
			
		||||
        self._idp = idp
 | 
			
		||||
@@ -82,6 +83,8 @@ class Client(Entity):
 | 
			
		||||
        else:
 | 
			
		||||
            self._metadata = None
 | 
			
		||||
 | 
			
		||||
        self.metadata = self._metadata
 | 
			
		||||
 | 
			
		||||
        self.cookie_handler = None
 | 
			
		||||
 | 
			
		||||
        self.done_ecp = False
 | 
			
		||||
@@ -114,7 +117,7 @@ class Client(Entity):
 | 
			
		||||
        logger.debug("[P2] Sending request: %s" % ht_args["data"])
 | 
			
		||||
 | 
			
		||||
        # POST the request to the IdP
 | 
			
		||||
        response = self.send(destination, **ht_args)
 | 
			
		||||
        response = self.send(**ht_args)
 | 
			
		||||
 | 
			
		||||
        logger.debug("[P2] Got IdP response: %s" % response)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user