- Issue created by @abbas_66
Below is my remote saml20-idp-remote metadata code being used for SP.
$metadata[$IdP_host . '/simplesaml/module.php/saml/idp/metadata'] = [
'metadata-set' => 'saml20-idp-remote',
'entityid' => $IdP_host . '/simplesaml/module.php/saml/idp/metadata',
'SingleSignOnService' => [
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
'Location' => $IdP_host . '/simplesaml/module.php/saml/idp/singleSignOnService',
],
],
'SingleLogoutService' => [
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
'Location' => $IdP_host . '/simplesaml/module.php/saml/idp/singleLogout',
],
],
'certData' => $IdP_cert_data,
'contacts' => [
[
'emailAddress' => 'email@xyz.com',
'contactType' => 'technical',
'givenName' => 'Administrator',
],
],
];
and for saml20-sp-remote is following code being used in IDP site.
foreach ($SP_config as $SP) {
$metadata[$SP['url'] . '/simplesaml/module.php/saml/sp/metadata.php/drupal-userpass'] = [
'SingleLogoutService' => [
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
'Location' => $SP['url'] . '/simplesaml/module.php/saml/sp/saml2-logout.php/drupal-userpass',
],
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP',
'Location' => $SP['url'] . '/simplesaml/module.php/saml/sp/saml2-logout.php/drupal-userpass',
],
],
'AssertionConsumerService' => [
[
'index' => 0,
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
'Location' => $SP['url'] . '/simplesaml/module.php/saml/sp/saml2-acs.php/drupal-userpass',
],
[
'index' => 1,
'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:browser-post',
'Location' => $SP['url'] . '/simplesaml/module.php/saml/sp/saml1-acs.php/drupal-userpass',
],
[
'index' => 2,
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact',
'Location' => $SP['url'] . '/simplesaml/module.php/saml/sp/saml2-acs.php/drupal-userpass',
],
[
'index' => 3,
'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:artifact-01',
'Location' => $SP['url'] . '/simplesaml/module.php/saml/sp/saml1-acs.php/drupal-userpass/artifact',
],
],
'name' => [
'en' => 'Hub',
],
'contacts' => [
[
'emailAddress' => 'email@xyz.com',
'contactType' => 'technical',
'givenName' => 'Administrator',
],
],
'certData' => $SP['cert'],
];
}
Any suggestion/guidance is highly appreciated.
Active
2.0
Code