SAML 2.0 SP 元信息
这里是SimpleSAMLphp为你生成的元信息,你应该发送这个元信息文档给你的信任的合作伙伴以建立信任的联盟
你可以在 获取元信息XML
https://hekaton.mojedelo.com/simplesaml/www/module.php/saml/sp/metadata.php/mojedelo-register
元信息
在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://hekaton.mojedelo.com"> <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>MIIDvzCCAqegAwIBAgIJAI2c8O+T0YW5MA0GCSqGSIb3DQEBCwUAMHYxCzAJBgNVBAYTAlNMMRIwEAYDVQQIDAlManVibGphbmExFTATBgNVBAcMDERlZmF1bHQgQ2l0eTEPMA0GA1UECgwGU3BlY3RvMQwwCgYDVQQLDAN3ZWIxHTAbBgkqhkiG9w0BCQEWDmluZm9Ac3BlY3RvLnNpMB4XDTIxMDkyMzIwMzEyOFoXDTMxMDkyMzIwMzEyOFowdjELMAkGA1UEBhMCU0wxEjAQBgNVBAgMCUxqdWJsamFuYTEVMBMGA1UEBwwMRGVmYXVsdCBDaXR5MQ8wDQYDVQQKDAZTcGVjdG8xDDAKBgNVBAsMA3dlYjEdMBsGCSqGSIb3DQEJARYOaW5mb0BzcGVjdG8uc2kwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCwqUWL05Dv2HR5rLuZKEdo3AZwtAWNItHk5jxLgFhPtWHy3DA4ak9K5gohKsjLLj4JzvpTAbQIQ45s/lOtTzvOEygg+h31fpDjNobWio0jetpqv9ttpzOx71Tmy8DW1E3h9Fqt9RhsjQrXLWFxrpPqIhVJ5oGeysh7lOyX3K/BFzNS6YEU4dxSVZ9qZjkwjOu7tT4qanHtsEOb4Qmyy0fA/ZY9q8ruwXzEUBFLNH85VLdQy+dYpPCFSXT9vGte0lCJQW7um3vPAXIMLbmav2R3QTVCrK0+tV7LNTSNqbTj2c1y62IZ3UOBwklkWa3lIcCyXuQ0w8dp3i8+IFXFSMrzAgMBAAGjUDBOMB0GA1UdDgQWBBQCdtiYcaTTeAA8xhAp72RI54ytsDAfBgNVHSMEGDAWgBQCdtiYcaTTeAA8xhAp72RI54ytsDAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBMNw+Fc7xV2dDqzIHIBvMEfxKAy4sEnjX3vdfIc8moLCz+KFHn/XCENqgmEZMluloDqKwmJEw2PVBw+drJOJVtNKWErBCrBiAO1CeR9fsKSwLqlH+MfY7V7shQXCSsjAacR8AHbG6Y7rKGKSRUyX1pbJvdssAuK1NPGoFGEeOZiSu/tu4gPDFrp+UsG2S+OGLAxTsiS5OTJGL/X2dluAXE22M1DYFQq+MpvenkOshRjBY/Fs1SOrr0SOJmSOOmJgL1bWBRh8Zd0gRozxGKhMOZQGo8DlLi5QDOF36lv6ILCjAo+glyo62ByiPOg+xFK5rRf4OB/+W5x14P3OQHCT6g</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>MIIDvzCCAqegAwIBAgIJAI2c8O+T0YW5MA0GCSqGSIb3DQEBCwUAMHYxCzAJBgNVBAYTAlNMMRIwEAYDVQQIDAlManVibGphbmExFTATBgNVBAcMDERlZmF1bHQgQ2l0eTEPMA0GA1UECgwGU3BlY3RvMQwwCgYDVQQLDAN3ZWIxHTAbBgkqhkiG9w0BCQEWDmluZm9Ac3BlY3RvLnNpMB4XDTIxMDkyMzIwMzEyOFoXDTMxMDkyMzIwMzEyOFowdjELMAkGA1UEBhMCU0wxEjAQBgNV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Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://hekaton.mojedelo.com/simplesaml/www/module.php/saml/sp/saml2-logout.php/mojedelo-register"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://hekaton.mojedelo.com/simplesaml/www/module.php/saml/sp/saml2-acs.php/mojedelo-register" index="0"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:browser-post" Location="https://hekaton.mojedelo.com/simplesaml/www/module.php/saml/sp/saml1-acs.php/mojedelo-register" index="1"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="https://hekaton.mojedelo.com/simplesaml/www/module.php/saml/sp/saml2-acs.php/mojedelo-register" index="2"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:artifact-01" Location="https://hekaton.mojedelo.com/simplesaml/www/module.php/saml/sp/saml1-acs.php/mojedelo-register/artifact" index="3"/> </md:SPSSODescriptor> <md:ContactPerson contactType="technical"> <md:GivenName>Specto</md:GivenName> <md:EmailAddress>mailto:info@specto.si</md:EmailAddress> </md:ContactPerson> </md:EntityDescriptor>
如果你想在其他网站使用的SimpleSAMLphp,那么你应该使用SimpleSAMLphp扁平的文件格式
$metadata['https://hekaton.mojedelo.com'] = array ( 'SingleLogoutService' => array ( 0 => array ( 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', 'Location' => 'https://hekaton.mojedelo.com/simplesaml/www/module.php/saml/sp/saml2-logout.php/mojedelo-register', ), ), 'AssertionConsumerService' => array ( 0 => array ( 'index' => 0, 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', 'Location' => 'https://hekaton.mojedelo.com/simplesaml/www/module.php/saml/sp/saml2-acs.php/mojedelo-register', ), 1 => array ( 'index' => 1, 'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:browser-post', 'Location' => 'https://hekaton.mojedelo.com/simplesaml/www/module.php/saml/sp/saml1-acs.php/mojedelo-register', ), 2 => array ( 'index' => 2, 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact', 'Location' => 'https://hekaton.mojedelo.com/simplesaml/www/module.php/saml/sp/saml2-acs.php/mojedelo-register', ), 3 => array ( 'index' => 3, 'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:artifact-01', 'Location' => 'https://hekaton.mojedelo.com/simplesaml/www/module.php/saml/sp/saml1-acs.php/mojedelo-register/artifact', ), ), 'contacts' => array ( 0 => array ( 'emailAddress' => 'info@specto.si', 'contactType' => 'technical', 'givenName' => 'Specto', ), ), 'certData' => 'MIIDvzCCAqegAwIBAgIJAI2c8O+T0YW5MA0GCSqGSIb3DQEBCwUAMHYxCzAJBgNVBAYTAlNMMRIwEAYDVQQIDAlManVibGphbmExFTATBgNVBAcMDERlZmF1bHQgQ2l0eTEPMA0GA1UECgwGU3BlY3RvMQwwCgYDVQQLDAN3ZWIxHTAbBgkqhkiG9w0BCQEWDmluZm9Ac3BlY3RvLnNpMB4XDTIxMDkyMzIwMzEyOFoXDTMxMDkyMzIwMzEyOFowdjELMAkGA1UEBhMCU0wxEjAQBgNVBAgMCUxqdWJsamFuYTEVMBMGA1UEBwwMRGVmYXVsdCBDaXR5MQ8wDQYDVQQKDAZTcGVjdG8xDDAKBgNVBAsMA3dlYjEdMBsGCSqGSIb3DQEJARYOaW5mb0BzcGVjdG8uc2kwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCwqUWL05Dv2HR5rLuZKEdo3AZwtAWNItHk5jxLgFhPtWHy3DA4ak9K5gohKsjLLj4JzvpTAbQIQ45s/lOtTzvOEygg+h31fpDjNobWio0jetpqv9ttpzOx71Tmy8DW1E3h9Fqt9RhsjQrXLWFxrpPqIhVJ5oGeysh7lOyX3K/BFzNS6YEU4dxSVZ9qZjkwjOu7tT4qanHtsEOb4Qmyy0fA/ZY9q8ruwXzE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