Skip to content

Instantly share code, notes, and snippets.

@skyforest
Created November 21, 2023 20:48
Show Gist options
  • Save skyforest/736457ae77c33874a32994dcdbbfaa1e to your computer and use it in GitHub Desktop.
Save skyforest/736457ae77c33874a32994dcdbbfaa1e to your computer and use it in GitHub Desktop.
saml20-sp-remote.php
<?php
$metadata['https://samltest.id/saml/sp'] = [
'entityid' => 'https://samltest.id/saml/sp',
'attributemap' => 'unified2name',
'contacts' => [],
'metadata-set' => 'saml20-sp-remote',
'AssertionConsumerService' => [
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
'Location' => 'https://samltest.id/Shibboleth.sso/SAML2/POST',
'index' => 1,
],
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign',
'Location' => 'https://samltest.id/Shibboleth.sso/SAML2/POST-SimpleSign',
'index' => 2,
],
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact',
'Location' => 'https://samltest.id/Shibboleth.sso/SAML2/Artifact',
'index' => 3,
],
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:PAOS',
'Location' => 'https://samltest.id/Shibboleth.sso/SAML2/ECP',
'index' => 4,
],
],
'SingleLogoutService' => [
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP',
'Location' => 'https://samltest.id/Shibboleth.sso/SLO/SOAP',
],
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
'Location' => 'https://samltest.id/Shibboleth.sso/SLO/Redirect',
],
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
'Location' => 'https://samltest.id/Shibboleth.sso/SLO/POST',
],
[
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact',
'Location' => 'https://samltest.id/Shibboleth.sso/SLO/Artifact',
],
],
'keys' => [
[
'encryption' => false,
'signing' => true,
'type' => 'X509Certificate',
'X509Certificate' => 'MIIERTCCAq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n4lGBr4cCFcGk/PLHeyksgPdjNmO1g7y5TWQzu21WzkXRTWJq7wGwWeW6NrcNqweYPLbXEo0JlmHqunkUs+NsLQAFqSPX02P2xzkA/eOU2o/jN4jAPNpzqxJouvmiWGXl8Qy4U7vQZ0tGvlTDSltATOQ/QIDAQABo1gwVjA1BgNVHREELjAsgippcC0xNzItMzEtMjgtNjQudXMtd2VzdC0yLmNvbXB1dGUuaW50ZXJuYWwwHQYDVR0OBBYEFBBtS9YNKSIwViH37GJCTxjNBzLAMA0GCSqGSIb3DQEBCwUAA4IBgQDWXcaI7zMnhGsLVTUA6dgzZCa88QkN/Z6n7lCY2oaKj1neBAWA1Mxg7GBJsmLOrHN8ie0D/uKAF+7NqKCXYqd0PpTX7c1NICL92DvbugG/Ow50j5Dw6rU4Y8dPS7Y/T1ddbT2F9/5lHCIWP/O2E9HREJ0JAIbu/Mi0CE1qui2aSJMDWKuiGK63M/7fvP51m6xSJOfZBhmjgllIwEhIzfh4hVPhH0C7iqVls34UyLCZ8IZOCuGPJyTaJN6Pi3Uo1Otkz/1igN5MpQhVaeYG7SMgha6skTLrVXTt4CuMVsOZ6cG3kHqw8XZoRld+I50iyHqansf5qwzmNoPeXyjGRFQzV/EH3SUu8eAISTt9pfirwjKsVNHrmMRnQEB/hJYYbTWSsvdS8ghw7a/A0EKQPVaZGCP/hcpt9JMMb66y2L8VgBbb6aTsR+Uabf6aiMnj1UBMUz9yaMkakKM7e66uHdXUDZ/s8F5rPOGCK+O8O6EsLRf8XetRWLa1TXRDkJZVPX4=',
],
],
'UIInfo' => [
'DisplayName' => [
'en' => 'SAMLtest SP',
],
'Description' => [
'en' => 'A free and basic SP for testing SAML deployments',
],
'InformationURL' => [],
'PrivacyStatementURL' => [],
'Logo' => [
[
'url' => 'https://samltest.id/saml/logo.png',
'height' => 90,
'width' => 225,
],
],
],
'name' => [
'en' => 'SAMLtest SP',
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment