SAML 2.0 SP metadata
Her er metadata som SimpleSAMLphp har generert for deg. Du må utveksle metadata med de partene du stoler på for å sette opp en føderasjon.
Du kan nå metadata i XML-format på en dedikert URL:
http://fredheim.skole.gran.no/sp-adfs/module.php/saml/sp/metadata.php/sp-adfs.nov.toma.intra.intra.custompublish.com
Metadata
I SAML 2.0 Metadata XML Format:
<?xml version="1.0"?> <md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="sp-adfs.nov.toma.intra.intra.custompublish.com" ID="_2ea51264913916d76113e18d6d663b950863031a195152f5f9a7e4df46092acf"><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="#_2ea51264913916d76113e18d6d663b950863031a195152f5f9a7e4df46092acf"><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>xZAwW6c7hK0Qp9LtZIxKCH078LThvc8k1M0KiAtDsJE=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>V/xDTsDNYn7Nqgw06Yvjgq8Appo1cA07o+sFZZ2EYb2FDVth5NtQ5ldKFIUIBh1ozrroYiV1jGYmtm5PtaL5tmEd1mutkoNz0+kAc2y51CJA5QduW8BYwMtJxl7wCN26Rc570XZMa9Ur9aNsBsIEiuzNqZz/rVYgToYU/QBe7DMtGuH4oNGvE1cHm2POq2wcwp71CEMx4NfFqRTnBlzpvviHDRV4w/BVNK9ZPWf5yytyWtHCxaf+2kM/mF56241xn4MbyWIja8ycVAT8MgSRiWr4Hm2Ki9Ws2ViwpR6ObrAu79vKTMta/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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="http://fredheim.skole.gran.no/sp-adfs/module.php/saml/sp/saml2-logout.php/sp-adfs.nov.toma.intra.intra.custompublish.com"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="http://fredheim.skole.gran.no/sp-adfs/module.php/saml/sp/saml2-acs.php/sp-adfs.nov.toma.intra.intra.custompublish.com" index="0"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:browser-post" Location="http://fredheim.skole.gran.no/sp-adfs/module.php/saml/sp/saml1-acs.php/sp-adfs.nov.toma.intra.intra.custompublish.com" index="1"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact" Location="http://fredheim.skole.gran.no/sp-adfs/module.php/saml/sp/saml2-acs.php/sp-adfs.nov.toma.intra.intra.custompublish.com" index="2"/> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:artifact-01" Location="http://fredheim.skole.gran.no/sp-adfs/module.php/saml/sp/saml1-acs.php/sp-adfs.nov.toma.intra.intra.custompublish.com/artifact" index="3"/> </md:SPSSODescriptor> <md:ContactPerson contactType="technical"> <md:GivenName>Administrator (CustomPublish AS)</md:GivenName> <md:EmailAddress>mailto:svein@custompublish.com</md:EmailAddress> </md:ContactPerson> </md:EntityDescriptor>
I SimpleSAMLphp format - bruk denne dersom du benytter SimpleSAMLphp i den andre enden:
$metadata['sp-adfs.nov.toma.intra.intra.custompublish.com'] = [ 'SingleLogoutService' => [ [ 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect', 'Location' => 'http://fredheim.skole.gran.no/sp-adfs/module.php/saml/sp/saml2-logout.php/sp-adfs.nov.toma.intra.intra.custompublish.com', ], ], 'AssertionConsumerService' => [ [ 'index' => 0, 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', 'Location' => 'http://fredheim.skole.gran.no/sp-adfs/module.php/saml/sp/saml2-acs.php/sp-adfs.nov.toma.intra.intra.custompublish.com', ], [ 'index' => 1, 'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:browser-post', 'Location' => 'http://fredheim.skole.gran.no/sp-adfs/module.php/saml/sp/saml1-acs.php/sp-adfs.nov.toma.intra.intra.custompublish.com', ], [ 'index' => 2, 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact', 'Location' => 'http://fredheim.skole.gran.no/sp-adfs/module.php/saml/sp/saml2-acs.php/sp-adfs.nov.toma.intra.intra.custompublish.com', ], [ 'index' => 3, 'Binding' => 'urn:oasis:names:tc:SAML:1.0:profiles:artifact-01', 'Location' => 'http://fredheim.skole.gran.no/sp-adfs/module.php/saml/sp/saml1-acs.php/sp-adfs.nov.toma.intra.intra.custompublish.com/artifact', ], ], 'contacts' => [ [ 'emailAddress' => 'svein@custompublish.com', 'contactType' => 'technical', 'givenName' => 'Administrator (CustomPublish AS)', ], ], ];