xml_templates.py
About this file
We attempted to read from templates/app_lib_onelogin_saml2_xml_templates.py_hw.txt but failed.
Code Check Report
app/lib/onelogin/saml2/xml_templates.py:75:121: E501 line too long (136 > 120 characters)
app/lib/onelogin/saml2/xml_templates.py:89:121: E501 line too long (159 > 120 characters)
Documentation drawn from source code
OneLogin_Saml2_Auth classCopyright (c) 2010-2018 OneLogin, Inc.MIT LicenseMain class of OneLogin's Python Toolkit.Initializes the SP SAML instance
OneLogin_Saml2_Templates(object):
ATTRIBUTE = %s AUTHN_REQUEST = """\xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocolxmlns:saml="urn:oasis:names:tc:SAML:2.0:assertionID="%(id)sVersion="2.0"%(provider_name)s%(force_authn_str)s%(is_passive_str)sIssueInstant="%(issue_instant)sDestination="%(destination)sProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POSTAssertionConsumerServiceURL="%(assertion_url)s"%(attr_consuming_service_str)s>%(entity_id)s %(nameid_policy_str)s%(requested_authn_context_str)sLOGOUT_REQUEST = """\xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocolxmlns:saml="urn:oasis:names:tc:SAML:2.0:assertionID="%(id)sVersion="2.0IssueInstant="%(issue_instant)sDestination="%(single_logout_url)s">%(entity_id)s %(name_id)s%(session_index)sLOGOUT_RESPONSE = """\xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocolxmlns:saml="urn:oasis:names:tc:SAML:2.0:assertionID="%(id)sVersion="2.0IssueInstant="%(issue_instant)sDestination="%(destination)sInResponseTo="%(in_response_to)s">%(entity_id)s MD_CONTACT_PERSON = """\%(name)s %(email)s MD_SLS = """\MD_ATTR_CONSUMER_SERVICE = """\%(service_name)s %(attr_cs_desc)s%(requested_attribute_str)sMD_ENTITY_DESCRIPTOR = """\%(sls)s %(name_id_format)s index="1" />%(attribute_consuming_service)s %(organization)s%(contacts)sMD_ORGANISATION = """\%(name)s %(display_name)s %(url)s RESPONSE = """\xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocolxmlns:saml="urn:oasis:names:tc:SAML:2.0:assertionID="%(id)sInResponseTo="%(in_response_to)sVersion="2.0IssueInstant="%(issue_instant)sDestination="%(destination)s">%(entity_id)s xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocolValue="%(status)s"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instancexmlns:xs="http://www.w3.org/2001/XMLSchemaVersion="2.0ID="%(assertion_id)sIssueInstant="%(issue_instant)s">%(entity_id)s NameQualifier="%(entity_id)sSPNameQualifier="%(requester)sFormat="%(name_id_policy)s">%(name_id)s NotOnOrAfter="%(not_after)sInResponseTo="%(in_response_to)sRecipient="%(destination)s"> %(requester)s AuthnInstant="%(issue_instant)sSessionIndex="%(session_index)sSessionNotOnOrAfter="%(not_after)s">%(authn_context)s %(attributes)s
Source code