

def do_assertion_id_request(self, assertion_ids, entity_id, consent=None, extensions=None, sign=False):
    srvs = self.metadata.assertion_id_request_service(entity_id, BINDING_SOAP)
    if (not srvs):
        raise NoServiceDefined(('%s: %s' % (entity_id, 'assertion_id_request_service')))
    if isinstance(assertion_ids, basestring):
        assertion_ids = [assertion_ids]
    _id_refs = [AssertionIDRef(_id) for _id in assertion_ids]
    for destination in destinations(srvs):
        res = self._use_soap(destination, 'assertion_id_request', assertion_id_refs=_id_refs, consent=consent, extensions=extensions, sign=sign)
        if res:
            return res
    return None

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pysaml2-2.4.0/src/saml2/client.py Saml2Client.do_assertion_id_request/original