Skip to content
Snippets Groups Projects
Commit db5dcdac authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Shorthand arrays

parent e16ea1ee
No related branches found
No related tags found
No related merge requests found
<?php <?php
$metadata['entityA'] = array( $metadata['entityA'] = [
'entityid' => 'entityA', 'entityid' => 'entityA',
'name' => 'name' =>
array( [
'en' => 'entityA SP from source1', 'en' => 'entityA SP from source1',
), ],
'metadata-set' => 'saml20-sp-remote', 'metadata-set' => 'saml20-sp-remote',
'AssertionConsumerService' => 'AssertionConsumerService' =>
array( [
0 => 0 =>
array( [
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
'Location' => 'https://entityA.example.org/Shibboleth.sso/SAML2/POST', 'Location' => 'https://entityA.example.org/Shibboleth.sso/SAML2/POST',
'index' => 1, 'index' => 1,
'isDefault' => true, 'isDefault' => true,
), ],
) ]
); ];
$metadata['entityInBoth'] = array( $metadata['entityInBoth'] = [
'entityid' => 'entityInBoth', 'entityid' => 'entityInBoth',
'name' => 'name' =>
array( [
'en' => 'entityInBoth SP from source1', 'en' => 'entityInBoth SP from source1',
), ],
'metadata-set' => 'saml20-sp-remote', 'metadata-set' => 'saml20-sp-remote',
'AssertionConsumerService' => 'AssertionConsumerService' =>
array( [
0 => 0 =>
array( [
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
'Location' => 'https://entityInBoth.example.org/Shibboleth.sso/SAML2/POST', 'Location' => 'https://entityInBoth.example.org/Shibboleth.sso/SAML2/POST',
'index' => 1, 'index' => 1,
'isDefault' => true, 'isDefault' => true,
), ],
) ]
); ];
$metadata['expiredInSrc1InSrc2'] = array( $metadata['expiredInSrc1InSrc2'] = [
'entityid' => 'expiredInSrc1InSrc2', 'entityid' => 'expiredInSrc1InSrc2',
// This entity is expired in src1 but unexpired in src2 // This entity is expired in src1 but unexpired in src2
'expire' => 1, 'expire' => 1,
'name' => 'name' =>
array( [
'en' => 'expiredInSrc1InSrc2 SP from source1', 'en' => 'expiredInSrc1InSrc2 SP from source1',
), ],
'metadata-set' => 'saml20-sp-remote', 'metadata-set' => 'saml20-sp-remote',
'AssertionConsumerService' => 'AssertionConsumerService' =>
array( [
0 => 0 =>
array( [
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST', 'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
'Location' => 'https://expiredInSrc1InSrc2.example.org/Shibboleth.sso/SAML2/POST', 'Location' => 'https://expiredInSrc1InSrc2.example.org/Shibboleth.sso/SAML2/POST',
'index' => 1, 'index' => 1,
'isDefault' => true, 'isDefault' => true,
), ],
) ]
); ];
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment