SAML 2.0 SP 元信息
这里是SimpleSAMLphp为你生成的元信息,你应该发送这个元信息文档给你的信任的合作伙伴以建立信任的联盟
你可以在 获取元信息XML
https://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/metadata.php/default-sp
元信息
在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://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/metadata.php/default-sp"> <md:SPSSODescriptor protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol urn:oasis:names:tc:SAML:1.1:protocol"> <md:KeyDescriptor use="signing"> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:X509Data> <ds:X509Certificate>MIIDrzCCApegAwIBAgIUFppLLpaWJcGC2BLigcYRmo953+cwDQYJKoZIhvcNAQELBQAwZzELMAkGA1UEBhMCTUsxEzARBgNVBAgMClNvbWUtU3RhdGUxDzANBgNVBAcMBlNrb3BqZTENMAsGA1UECgwEVUtJTTEjMCEGA1UEAwwaZmYuaWRwLXByb3h5LmZpbmtpLnVraW0ubWswHhcNMjAwNDA0MTcwMjQyWhcNMzAwNDAyMTcwMjQyWjBnMQswCQYDVQQGEwJNSzETMBEGA1UECAwKU29tZS1TdGF0ZTEPMA0GA1UEBwwGU2tvcGplMQ0wCwYDVQQKDARVS0lNMSMwIQYDVQQDDBpmZi5pZHAtcHJveHkuZmlua2kudWtpbS5tazCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALWX/ebfJ+mhSNAxZ0KeFCwWdnzI9q4mKyQfgJoprKG44EK6F3fOxht362wiUEKxfqQL8bu5tuLpSWo7AwDegHxhDlsqMhUm3gnUHd2yWGZsXZwnzEM3f+MX2v1GcIQk7xhbGb9ON5xd/SttRFN01RKztJus2afS/45AglXuWrZI1hHgFEGH6PxCUtZb8FJZ/4hcDEeSC1fPPX5QCOYYx3Lh7xCm9vsDDkj6S0trT/tx14uS2kMmmcXvKTiRDp/QJ9DU0mJxT5YscZvqbfhk5SLRCt0WL/AVnnHHGOtWrgP80yriu5Uxusx9WB0EtuseHtI3B9qjpLAR+uK7SAh4ru0CAwEAAaNTMFEwHQYDVR0OBBYEFJTXwj1VhGe/vC191EWYNIs3WkOGMB8GA1UdIwQYMBaAFJTXwj1VhGe/vC191EWYNIs3WkOGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAFBG9MKF4i6SP9SD2FtDTZSVxMb1XfnvhmH01JA/zO3VI0OVhkZKdx+Q4HMyKFRSz1N317bTPQDJ0vUZfaXfSDDffRSSBMGUbdPNdIIwmi77aT4yOYuQek+pC6oWgr7raKN50h/m4qG5QX9s2deswJ+mWjh6nSUrAt4nFZJtyeUXH87g6qGFdyZ/nklyyTNjx7dQErBVcClC0zSYW2rEgRWi+BW7v0AX+KuzCUVFmH7bfO48WyRU7OdCwoYxEo+jY1mQkRPNBVlm3VN0WcCrwt3acsnE69ERbElsciW2CRJ9Di6++HXG3fD3AVessnZKNMDYMrxoRL6n7KJ0nFgZcSU=</ds:X509Certificate> </ds:X509Data> </ds:KeyInfo> </md:KeyDescriptor> <md:KeyDescriptor use="encryption"> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:X509Data> <ds:X509Certificate>MIIDrzCCApegAwIBAgIUFppLLpaWJcGC2BLigcYRmo953+cwDQYJKoZIhvcNAQELBQAwZzELMAkGA1UEBhMCTUsxEzARBgNVBAgMClNvbWUtU3RhdGUxDzANBgNVBAcMBlNrb3BqZTENMAsGA1UECgwEVUtJTTEjMCEGA1UEAwwaZmYuaWRwLXByb3h5LmZpbmtpLnVraW0ubWswHhcNMjAwNDA0MTcwMjQyWhcNMzAwNDAyMTcwMjQyWjBnMQswCQYDVQQGEwJNSzETMBEGA1UECAwKU29tZS1TdGF0ZTEPMA0GA1UEBwwGU2tvcGplMQ0wCwYDVQQKDARVS0lNMSMwIQYDVQQDDBpmZi5pZHAtcHJveHkuZmlua2kudWtpbS5tazCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALWX/ebfJ+mhSNAxZ0KeFCwWdnzI9q4mKyQfgJoprKG44EK6F3fOxht362wiUEKxfqQL8bu5tuLpSWo7AwDegHxhDlsqMhUm3gnUHd2yWGZsXZwnzEM3f+MX2v1GcIQk7xhbGb9ON5xd/SttRFN01RKztJus2afS/45AglXuWrZI1hHgFEGH6PxCUtZb8FJZ/4hcDEeSC1fPPX5QCOYYx3Lh7xCm9vsDDkj6S0trT/tx14uS2kMmmcXvKTiRDp/QJ9DU0mJxT5YscZvqbfhk5SLRCt0WL/AVnnHHGOtWrgP80yriu5Uxusx9WB0EtuseHtI3B9qjpLAR+uK7SAh4ru0CAwEAAaNTMFEwHQYDVR0OBBYEFJTXwj1VhGe/vC191EWYNIs3WkOGMB8GA1UdIwQYMBaAFJTXwj1VhGe/vC191EWYNIs3WkOGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAFBG9MKF4i6SP9SD2FtDTZSVxMb1XfnvhmH01JA/zO3VI0OVhkZKdx+Q4HMyKFRSz1N317bTPQDJ0vUZfaXfSDDffRSSBMGUbdPNdIIwmi77aT4yOYuQek+pC6oWgr7raKN50h/m4qG5QX9s2deswJ+mWjh6nSUrAt4nFZJtyeUXH87g6qGFdyZ/nklyyTNjx7dQErBVcClC0zSYW2rEgRWi+BW7v0AX+KuzCUVFmH7bfO48WyRU7OdCwoYxEo+jY1mQkRPNBVlm3VN0WcCrwt3acsnE69ERbElsciW2CRJ9Di6++HXG3fD3AVessnZKNMDYMrxoRL6n7KJ0nFgZcSU=</ds:X509Certificate> </ds:X509Data> </ds:KeyInfo> </md:KeyDescriptor> <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/saml2-logout.php/default-sp"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/saml2-acs.php/default-sp" index="0"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:browser-post" Location="https://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/saml1-acs.php/default-sp" index="1"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="https://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/saml2-acs.php/default-sp" index="2"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:artifact-01" Location="https://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/saml1-acs.php/default-sp/artifact" index="3"/> </md:SPSSODescriptor> <md:ContactPerson contactType="technical"> <md:GivenName>FINKI</md:GivenName> <md:SurName>FCC</md:SurName> <md:EmailAddress>fcc@finki.ukim.mk</md:EmailAddress> </md:ContactPerson> </md:EntityDescriptor>
如果你想在其他网站使用的SimpleSAMLphp,那么你应该使用SimpleSAMLphp扁平的文件格式
$metadata['https://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/metadata.php/default-sp'] = array ( 'SingleLogoutService' => array ( 0 => array ( 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', 'Location' => 'https://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/saml2-logout.php/default-sp', ), ), 'AssertionConsumerService' => array ( 0 => array ( 'index' => 0, 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', 'Location' => 'https://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/saml2-acs.php/default-sp', ), 1 => array ( 'index' => 1, 'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:browser-post', 'Location' => 'https://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/saml1-acs.php/default-sp', ), 2 => array ( 'index' => 2, 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact', 'Location' => 'https://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/saml2-acs.php/default-sp', ), 3 => array ( 'index' => 3, 'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:artifact-01', 'Location' => 'https://ff.idp-proxy.finki.ukim.mk/module.php/saml/sp/saml1-acs.php/default-sp/artifact', ), ), 'contacts' => array ( 0 => array ( 'emailAddress' => 'fcc@finki.ukim.mk', 'contactType' => 'technical', 'givenName' => 'FINKI', 'surName' => 'FCC', ), ), 'certData' => 'MIIDrzCCApegAwIBAgIUFppLLpaWJcGC2BLigcYRmo953+cwDQYJKoZIhvcNAQELBQAwZzELMAkGA1UEBhMCTUsxEzARBgNVBAgMClNvbWUtU3RhdGUxDzANBgNVBAcMBlNrb3BqZTENMAsGA1UECgwEVUtJTTEjMCEGA1UEAwwaZmYuaWRwLXByb3h5LmZpbmtpLnVraW0ubWswHhcNMjAwNDA0MTcwMjQyWhcNMzAwNDAyMTcwMjQyWjBnMQswCQYDVQQGEwJNSzETMBEGA1UECAwKU29tZS1TdGF0ZTEPMA0GA1UEBwwGU2tvcGplMQ0wCwYDVQQKDARVS0lNMSMwIQYDVQQDDBpmZi5pZHAtcHJveHkuZmlua2kudWtpbS5tazCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALWX/ebfJ+mhSNAxZ0KeFCwWdnzI9q4mKyQfgJoprKG44EK6F3fOxht362wiUEKxfqQL8bu5tuLpSWo7AwDegHxhDlsqMhUm3gnUHd2yWGZsXZwnzEM3f+MX2v1GcIQk7xhbGb9ON5xd/SttRFN01RKztJus2afS/45AglXuWrZI1hHgFEGH6PxCUtZb8FJZ/4hcDEeSC1fPPX5QCOYYx3Lh7xCm9vsDDkj6S0trT/tx14uS2kMmmcXvKTiRDp/QJ9DU0mJxT5YscZvqbfhk5SLRCt0WL/AVnnHHGOtWrgP80yriu5Uxusx9WB0EtuseHtI3B9qjpLAR+uK7SAh4ru0CAwEAAaNTMFEwHQYDVR0OBBYEFJTXwj1VhGe/vC191EWYNIs3WkOGMB8GA1UdIwQYMBaAFJTXwj1VhGe/vC191EWYNIs3WkOGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAFBG9MKF4i6SP9SD2FtDTZSVxMb1XfnvhmH01JA/zO3VI0OVhkZKdx+Q4HMyKFRSz1N317bTPQDJ0vUZfaXfSDDffRSSBMGUbdPNdIIwmi77aT4yOYuQek+pC6oWgr7raKN50h/m4qG5QX9s2deswJ+mWjh6nSUrAt4nFZJtyeUXH87g6qGFdyZ/nklyyTNjx7dQErBVcClC0zSYW2rEgRWi+BW7v0AX+KuzCUVFmH7bfO48WyRU7OdCwoYxEo+jY1mQkRPNBVlm3VN0WcCrwt3acsnE69ERbElsciW2CRJ9Di6++HXG3fD3AVessnZKNMDYMrxoRL6n7KJ0nFgZcSU=', );