Did I find the right examples for you? yes no

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/p/y/pysaml2-2.0.0/src/saml2/ecp_client.py   pysaml2(Download)
 
        # POST the request to the IdP
        response = self.send(**ht_args)
 
        logger.debug("[P2] Got IdP response: %s" % response)
                     "assertion_consumer_service_url '%s" % _acs_url)
            # Send an error message to the SP
            _ = self.send(rc_url, "POST", data=soap.soap_fault(error))
            # Raise an exception so the user knows something went wrong
            raise SAMLError(error)
 
        # POST the package from the IdP to the SP
        response = self.send(args["rc_url"], "POST", **ht_args)
 
        if response.status_code == 302:
        opargs["headers"] = self.add_paos_headers(opargs["headers"])
 
        response = self.send(url, op, **opargs)
        logger.debug("[Op] SP response: %s" % response)
 
 
            # should by now be authenticated so this should go smoothly
            response = self.send(url, op, **opargs)
        except (soap.XmlParseError, AssertionError, KeyError):
            pass

src/p/y/pysaml2-HEAD/src/saml2/ecp_client.py   pysaml2(Download)
 
        # POST the request to the IdP
        response = self.send(**ht_args)
 
        logger.debug("[P2] Got IdP response: %s" % response)
                     "assertion_consumer_service_url '%s" % _acs_url)
            # Send an error message to the SP
            _ = self.send(rc_url, "POST", data=soap.soap_fault(error))
            # Raise an exception so the user knows something went wrong
            raise SAMLError(error)
 
        # POST the package from the IdP to the SP
        response = self.send(args["rc_url"], "POST", **ht_args)
 
        if response.status_code == 302:
        opargs["headers"] = self.add_paos_headers(opargs["headers"])
 
        response = self.send(url, op, **opargs)
        logger.debug("[Op] SP response: %s" % response)
 
 
            # should by now be authenticated so this should go smoothly
            response = self.send(url, op, **opargs)
        except (soap.XmlParseError, AssertionError, KeyError):
            pass