function miniorange_samlController::saml_metadata in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8
1 string reference to 'miniorange_samlController::saml_metadata'
File
- src/
Controller/ miniorange_samlController.php, line 251 - Contains \Drupal\miniorange_saml\Controller\DefaultController.
Class
- miniorange_samlController
- Default controller for the miniorange_saml module.
Namespace
Drupal\miniorange_saml\ControllerCode
function saml_metadata() {
$entity_id = Utilities::getIssuer();
$acs_url = Utilities::getAcsUrl();
$header = isset($_REQUEST['download']) && boolval($_REQUEST['download']) ? 'Content-Disposition: attachment; filename="Metadata.xml"' : 'Content-Type: text/xml';
header($header);
echo '<?xml version="1.0"?>
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" validUntil="2022-08-04T23:59:59Z" cacheDuration="PT1446808792S" entityID="' . $entity_id . '">
<md:SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
<md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</md:NameIDFormat>
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="' . $acs_url . '" index="1"/>
</md:SPSSODescriptor>
<md:Organization>
<md:OrganizationName xml:lang="en-US">miniOrange</md:OrganizationName>
<md:OrganizationDisplayName xml:lang="en-US">miniOrange</md:OrganizationDisplayName>
<md:OrganizationURL xml:lang="en-US">http://miniorange.com</md:OrganizationURL>
</md:Organization>
<md:ContactPerson contactType="technical">
<md:GivenName>miniOrange</md:GivenName>
<md:EmailAddress>info@xecurify.com</md:EmailAddress>
</md:ContactPerson>
<md:ContactPerson contactType="support">
<md:GivenName>miniOrange</md:GivenName>
<md:EmailAddress>info@xecurify.com</md:EmailAddress>
</md:ContactPerson>
</md:EntityDescriptor>';
exit;
}