Metadatos SP SAML 2.0
Hona hemen SimpleSAMLphp-ak zuretzat sortu dituen metadatuak. Metadatuen dokumentu hau konfidantzazko zure kideei bidal diezaiekezu federazio bat konfiguratzeko.
xml metadatuekin URL bat eskura dezakezu:
https://sso.udima.es/simplesamlphp/module.php/saml/sp/metadata.php/ejemplo-sp
Metadatuak
SAML 2.0 metadatuetako xml formatuan:
<?xml version="1.0"?> <md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="http://skinner.cef.es" ID="_917432ef3c52d52b317b28af50cbc2f35dfe6540314e81c263eb8ab20978a08a"><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> <ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/> <ds:Reference URI="#_917432ef3c52d52b317b28af50cbc2f35dfe6540314e81c263eb8ab20978a08a"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><ds:DigestValue>aHwbxypFPeFSjTLKJFEqraG+pvbclGcguFDSiJmSUAE=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>T3T5rAuPen7gkPqn6ADcBGPV88+s9LYLXjnfh8Xcd79OO+JUx8OOrycNdTpcIhs1kQcnWfuDAP9lGPWmhB641ScpCWOUBOPlyExF0Srgv9tsj50s0W0fgjvjIkdSCnO2NN4faCNLMvEhqx4IJuxKGil7MFJ5MEKslUmTSLgLeQqkE5bVmFJSA597Ck6z1wQnO5c1bwLAx539LCHF1VMXRITq1kDyMllBz6ChjXuBTPjSqQ1sQ5j/gV9zVeUH8dtrL7tr1u6yCm1RdYZVIoXKrdrrPLP9CvBQQARqiJN2QefTWwDlFM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3UenJ04G0rIaiMHlq3Cy0LDqvv6t2FQE7rRw04Yn+eoWl6wrSYo6tzX818mOO3nhrrac3vg1iPl6kvwGtUteB8/RBQaVzFRe4ef/ITegdYEOa74HvaSdoWSVIlgit2DDGUChcwqtNQGjc37NkYN6aggqFzy4Vm3jpe05rKyyX7jCsWJrRFIZmxqVVS6ETko9/NrHe0cq5V8RzG/pRogmlCaFyHsTa1EmZR7cjgscRs9wzdcyUwfCnskg0x6KuJA96ryHTIpGHXs3ZQK0PK3fMv52M=</ds:X509Certificate></ds:X509Data></ds:KeyInfo></ds:Signature> <md:SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol urn:oasis:names:tc:SAML:1.1:protocol"> <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://sso.udima.es/simplesamlphp/module.php/saml/sp/saml2-logout.php/ejemplo-sp"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://sso.udima.es/simplesamlphp/module.php/saml/sp/saml2-acs.php/ejemplo-sp" index="0"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:browser-post" Location="https://sso.udima.es/simplesamlphp/module.php/saml/sp/saml1-acs.php/ejemplo-sp" index="1"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="https://sso.udima.es/simplesamlphp/module.php/saml/sp/saml2-acs.php/ejemplo-sp" index="2"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:artifact-01" Location="https://sso.udima.es/simplesamlphp/module.php/saml/sp/saml1-acs.php/ejemplo-sp/artifact" index="3"/> </md:SPSSODescriptor> <md:ContactPerson contactType="technical"> <md:GivenName>Servicios</md:GivenName> <md:SurName>Informáticos</md:SurName> <md:EmailAddress>mailto:informatica@udima.es</md:EmailAddress> </md:ContactPerson> </md:EntityDescriptor>
SimpleSAMLphp formatuko fitxategi batean - beste muturrean SimpleSAMLphp entitate bat erabiltzen ariz gero, erabil ezazu aukera hau:
$metadata['http://skinner.cef.es'] = [ 'SingleLogoutService' => [ [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', 'Location' => 'https://sso.udima.es/simplesamlphp/module.php/saml/sp/saml2-logout.php/ejemplo-sp', ], ], 'AssertionConsumerService' => [ [ 'index' => 0, 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', 'Location' => 'https://sso.udima.es/simplesamlphp/module.php/saml/sp/saml2-acs.php/ejemplo-sp', ], [ 'index' => 1, 'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:browser-post', 'Location' => 'https://sso.udima.es/simplesamlphp/module.php/saml/sp/saml1-acs.php/ejemplo-sp', ], [ 'index' => 2, 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact', 'Location' => 'https://sso.udima.es/simplesamlphp/module.php/saml/sp/saml2-acs.php/ejemplo-sp', ], [ 'index' => 3, 'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:artifact-01', 'Location' => 'https://sso.udima.es/simplesamlphp/module.php/saml/sp/saml1-acs.php/ejemplo-sp/artifact', ], ], 'contacts' => [ [ 'emailAddress' => 'informatica@udima.es', 'contactType' => 'technical', 'givenName' => 'Servicios', 'surName' => 'Informáticos', ], ], ];