SAML 2.0 IdP 元信息
这里是SimpleSAMLphp为你生成的元信息,你应该发送这个元信息文档给你的信任的合作伙伴以建立信任的联盟
你可以在 获取元信息XML
https://acceso.unach.mx/simplesamlphp/saml2/idp/metadata.php
元信息
在SAML 2.0 XML 元信息格式中:
<?xml version="1.0"?> <md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" entityID="https://acceso.unach.mx/idp"> <md:IDPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"> <md:KeyDescriptor use="signing"> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:X509Data> <ds:X509Certificate>MIIFAzCCA+ugAwIBAgISBDmfXTj6GDFhKRtAMEPDiBI2MA0GCSqGSIb3DQEBCwUAMDMxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQwwCgYDVQQDEwNSMTEwHhcNMjQxMjAyMTcyNDA0WhcNMjUwMzAyMTcyNDAzWjAaMRgwFgYDVQQDEw9hY2Nlc28udW5hY2gubXgwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDuwVqrgbAjJy8G7enIYzil9BgNqqftpv8vEaUPLxMGnXlEB4aoDkDdlD+xiA1Z9EHGxDo5TVMqW1ZWIRJKRJIU8HuSZy1YM5R4dOvK/2eqcQVkDHFUn5BtlPeQ5ZA0H1vM3am9HV48rGgsblT9ktstrKowvKlcyGlI8J4FAQVKolc0LInsLKcDcLH8OdhYopbE2DPoG14KiGJJBtGREMnjL2ESL1mOlzmXV6EZoz+vUj8gVNHmfmgOQ8oVH2PAQ2ro3uZQeADOCJNlqGvTh4MsuEMu+Zwvw42Amnil1axf8A0vn+CZlEpifZwdG2IA8ZzZPPn567kNlQ6R5uAa3y/vAgMBAAGjggIoMIICJDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCC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cuYWNjZXNvLnVuYWNoLm14MBMGA1UdIAQMMAowCAYGZ4EMAQIBMIIBBAYKKwYBBAHWeQIEAgSB9QSB8gDwAHYAouMK5EXvva2bfjjtR2d3U9eCW4SU1yteGyzEuVCkR+cAAAGTiJwjVgAABAMARzBFAiEA/+DRU/EI8qGsrIswtn7Vc8inWuLLT2DTs+4Bytp8dEsCIFoTah7t32v6q7rUoWP9YBDDsTahRavmaXVAhGOLl4iPAHYAzxFW7tUufK/zh1vZaS6b6RpxZ0qwF+ysAdJbd87MOwgAAAGTiJwrXAAABAMARzBFAiA4M7Z851gqewKmrZ0C0CAsfRIu2j/WJZZPyW7Y/dnzFgIhAJE+VvdGZN54M02RsnLk8lVfOH4GxjuryTm6cc7Yl2j+MA0GCSqGSIb3DQEBCwUAA4IBAQAY/isCUc8ORFNxKVRh8fn0gSn7byP1EG1aLZOaHuCVn1eY2ClJKUSKq3AoCn51THMCgglKzpR3VgDVnqR+m0Gt7pPiMO7VwC67lNw/xa8+tAKDffTdzWOK9/KpKCO4Vzco/i8/0dFLahtWgXEqKspjuWHzprT/6l7F7Rg9Lv13aJIhjB5Esc42ez3uePkrdcvhx2+NFoy6ik0esSEybIOaSZ5o6Xlgxzu9QldQe2ERhugOhPGBC47Bm4C/1MFZmkg75tF8FMkiau6n3LPCC1ZS9cVffXG7ojmwUweQLt2Yrhp6Rg/OG80DfDzkoo0WiKqeZuSNEWyJ/9EL1lSUvCwT</ds:X509Certificate> </ds:X509Data> </ds:KeyInfo> </md:KeyDescriptor> <md:ArtifactResolutionService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://acceso.unach.mx/simplesamlphp/saml2/idp/ArtifactResolutionService.php" index="0"/> <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://acceso.unach.mx/simplesamlphp/saml2/idp/SingleLogoutService.php"/> <md:NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</md:NameIDFormat> <md:SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://acceso.unach.mx/simplesamlphp/saml2/idp/SSOService.php"/> </md:IDPSSODescriptor> <md:ContactPerson contactType="technical"> <md:GivenName>Mesa de ayuda UNACH</md:GivenName> <md:EmailAddress>mesadeayuda@unach.mx</md:EmailAddress> </md:ContactPerson> </md:EntityDescriptor>
如果你想在其他网站使用的SimpleSAMLphp,那么你应该使用SimpleSAMLphp扁平的文件格式
$metadata['https://acceso.unach.mx/idp'] = array ( 'metadata-set' => 'saml20-idp-remote', 'entityid' => 'https://acceso.unach.mx/idp', 'SingleSignOnService' => array ( 0 => array ( 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', 'Location' => 'https://acceso.unach.mx/simplesamlphp/saml2/idp/SSOService.php', ), ), 'SingleLogoutService' => array ( 0 => array ( 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', 'Location' => 'https://acceso.unach.mx/simplesamlphp/saml2/idp/SingleLogoutService.php', ), ), 'certData' => 'MIIFAzCCA+ugAwIBAgISBDmfXTj6GDFhKRtAMEPDiBI2MA0GCSqGSIb3DQEBCwUAMDMxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQwwCgYDVQQDEwNSMTEwHhcNMjQxMjAyMTcyNDA0WhcNMjUwMzAyMTcyNDAzWjAaMRgwFgYDVQQDEw9hY2Nlc28udW5hY2gubXgwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDuwVqrgbAjJy8G7enIYzil9BgNqqftpv8vEaUPLxMGnXlEB4aoDkDdlD+xiA1Z9EHGxDo5TVMqW1ZWIRJKRJIU8HuSZy1YM5R4dOvK/2eqcQVkDHFUn5BtlPeQ5ZA0H1vM3am9HV48rGgsblT9ktstrKowvKlcyGlI8J4FAQVKolc0LInsLKcDcLH8OdhYopbE2DPoG14KiGJJBtGREMnjL2ESL1mOlzmXV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JIhjB5Esc42ez3uePkrdcvhx2+NFoy6ik0esSEybIOaSZ5o6Xlgxzu9QldQe2ERhugOhPGBC47Bm4C/1MFZmkg75tF8FMkiau6n3LPCC1ZS9cVffXG7ojmwUweQLt2Yrhp6Rg/OG80DfDzkoo0WiKqeZuSNEWyJ/9EL1lSUvCwT', 'ArtifactResolutionService' => array ( 0 => array ( 'index' => 0, 'Location' => 'https://acceso.unach.mx/simplesamlphp/saml2/idp/ArtifactResolutionService.php', 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP', ), ), 'NameIDFormat' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:transient', 'contacts' => array ( 0 => array ( 'emailAddress' => 'mesadeayuda@unach.mx', 'contactType' => 'technical', 'givenName' => 'Mesa de ayuda UNACH', ), ), );
证书
下载X509证书作为PEM编码的文件