def descriptor(request): """ Replies with the XML Metadata SPSSODescriptor. """ acs_url = get_acs_url(request) entity_id = _get_entity_id(request) pubkey = xml_signing.load_cert_data(saml2sp_settings.SAML2SP_CERTIFICATE_FILE) tv = { 'acs_url': acs_url, 'entity_id': entity_id, 'cert_public_key': pubkey, } return xml_response(request, 'saml2sp/spssodescriptor.xml', tv)
def descriptor(request): """ Replies with the XML Metadata SPSSODescriptor. """ acs_url = saml2sp_settings.SAML2SP_ACS_URL entity_id = _get_entity_id(request) pubkey = xml_signing.load_cert_data(saml2sp_settings.SAML2SP_CERTIFICATE_FILE) tv = { 'acs_url': acs_url, 'entity_id': entity_id, 'cert_public_key': pubkey, } return xml_response(request, 'saml2sp/spssodescriptor.xml', tv)
def descriptor(request): """ Replies with the XML Metadata IDSSODescriptor. """ idp_config = saml2idp_metadata.SAML2IDP_CONFIG entity_id = idp_config['issuer'] slo_url = request.build_absolute_uri(reverse('logout')) sso_url = request.build_absolute_uri(reverse('login_begin')) pubkey = xml_signing.load_cert_data(idp_config['certificate_file']) tv = { 'entity_id': entity_id, 'cert_public_key': pubkey, 'slo_url': slo_url, 'sso_url': sso_url, } return xml_response(request, 'saml2idp/idpssodescriptor.xml', tv)
def descriptor(request): """ Replies with the XML Metadata IDSSODescriptor. """ idp_config = saml2idp_metadata.SAML2IDP_CONFIG entity_id = idp_config['issuer'] slo_url = request.build_absolute_uri(reverse('saml_logout')) sso_url = request.build_absolute_uri(reverse('saml_login_begin')) pubkey = xml_signing.load_cert_data(idp_config['certificate_file']) tv = { 'entity_id': entity_id, 'cert_public_key': pubkey, 'slo_url': slo_url, 'sso_url': sso_url, } return xml_response(request, 'saml2idp/idpssodescriptor.xml', tv)