

def prepare_for_authenticate(self, entityid=None, relay_state='', binding=saml2.BINDING_HTTP_REDIRECT, vorg='', nameid_format=None, scoping=None, consent=None, extensions=None, sign=None, response_binding=saml2.BINDING_HTTP_POST, **kwargs):
    " Makes all necessary preparations for an authentication request.\n\n        :param entityid: The entity ID of the IdP to send the request to\n        :param relay_state: To where the user should be returned after\n            successfull log in.\n        :param binding: Which binding to use for sending the request\n        :param vorg: The entity_id of the virtual organization I'm a member of\n        :param scoping: For which IdPs this query are aimed.\n        :param consent: Whether the principal have given her consent\n        :param extensions: Possible extensions\n        :param sign: Whether the request should be signed or not.\n        :param response_binding: Which binding to use for receiving the response\n        :param kwargs: Extra key word arguments\n        :return: session id and AuthnRequest info\n        "
    destination = self._sso_location(entityid, binding)
    (reqid, req) = self.create_authn_request(destination, vorg, scoping, response_binding, nameid_format, consent=consent, extensions=extensions, sign=sign, **kwargs)
    _req_str = ('%s' % req)
    logger.info(('AuthNReq: %s' % _req_str))
    info = self.apply_binding(binding, _req_str, destination, relay_state)
    return (reqid, info)

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