~fkooman/php-saml-sp

0316644d4f350567353596c7a0193e1595cf25b5 — François Kooman 27 days ago 29280dd
if no attributes are available, show explicit message on "Info" page

References: https://codeberg.org/fkooman/php-saml-sp/issues/6
4 files changed, 6 insertions(+), 1 deletions(-)

M locale/da-DK.php
M locale/empty.php
M locale/nl-NL.php
M views/info.php
M locale/da-DK.php => locale/da-DK.php +1 -0
@@ 42,6 42,7 @@ return [
    'Search for your organization...' => 'Søg efter din organisation ...',
    'Select your organization to continue the login process.' => 'Vælg din organisation for at fortsætte loginprocessen.',
    'Test' => 'Test',
    //'The IdP provided no attributes, or they were not in a supported format.' => '',
    'This is the information page of this SAML SP. If you don\'t know what SAML is, you should not have arrived here! 🤔' => 'Det her er oplysningssiden for den her SAML-SP. Hvis du ikke ved hvad SAML er, skulle du slet ikke være havnet her! 🤔',
    'Welcome' => 'Velkommen',
    'XML' => 'XML',

M locale/empty.php => locale/empty.php +1 -0
@@ 42,6 42,7 @@ return [
    'Search for your organization...' => '',
    'Select your organization to continue the login process.' => '',
    'Test' => '',
    'The IdP provided no attributes, or they were not in a supported format.' => '',
    'This is the information page of this SAML SP. If you don\'t know what SAML is, you should not have arrived here! 🤔' => '',
    'Welcome' => '',
    'XML' => '',

M locale/nl-NL.php => locale/nl-NL.php +1 -0
@@ 42,6 42,7 @@ return [
    'Search for your organization...' => 'Zoek naar je organisatie...',
    'Select your organization to continue the login process.' => 'Selecteer je organisatie om verder te gaan met het inlog-proces.',
    'Test' => 'Test',
    'The IdP provided no attributes, or they were not in a supported format.' => 'De IdP heeft geen attributen doorgegeven, of ze waren niet in een ondersteund formaat.',
    'This is the information page of this SAML SP. If you don\'t know what SAML is, you should not have arrived here! 🤔' => 'Dit is de informatiepagina van deze SAML SP. Als je niet weet wat SAML is, zou je hier niet moeten belanden! 🤔',
    'Welcome' => 'Welkom',
    'XML' => 'XML',

M views/info.php => views/info.php +3 -1
@@ 29,8 29,10 @@
<?php endif; ?>
    </dl>

<?php if (0 !== \count($samlAssertion->getAttributes())): ?>
    <h2><?=$this->t('Attributes'); ?></h2>
<?php if (0 === \count($samlAssertion->getAttributes())): ?>
	<p class="warning"><?=$this->t('The IdP provided no attributes, or they were not in a supported format.');?></p>
<?php else: ?>
    <dl>
<?php foreach ($samlAssertion->getAttributes() as $attributeName => $attributeValueList): ?>
        <dt><?=$this->e($attributeName); ?></dt>