From 8374636a984a5dfbe58b155c35e9482fe32395c1 Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Wed, 17 Jul 2024 14:46:03 -0600 Subject: [PATCH] remove the feature to disable an IdP --- development/hub/metadata/idp-remote.php | 6 ---- .../material/default/selectidp-links.twig | 29 +------------------ modules/sildisco/src/IdPDisco.php | 22 ++------------ tests/MetadataTest.php | 21 +------------- 4 files changed, 4 insertions(+), 74 deletions(-) diff --git a/development/hub/metadata/idp-remote.php b/development/hub/metadata/idp-remote.php index cfb91c1..af01b35 100644 --- a/development/hub/metadata/idp-remote.php +++ b/development/hub/metadata/idp-remote.php @@ -18,7 +18,6 @@ ], 'IDPNamespace' => 'IDP-1-custom-port', 'logoCaption' => 'IDP-1:8085 staff', - 'enabled' => true, 'logoURL' => 'https://dummyimage.com/125x125/0f4fbd/ffffff.png&text=IDP+1+8085', 'description' => 'Local IDP for testing SSP Hub (custom port)', @@ -39,7 +38,6 @@ ], 'IDPNamespace' => 'IDP-1', 'logoCaption' => 'IDP-1 staff', - 'enabled' => true, 'logoURL' => 'https://dummyimage.com/125x125/0f4fbd/ffffff.png&text=IDP+1', 'description' => 'Local IDP for testing SSP Hub (default port)', @@ -65,7 +63,6 @@ ], 'IDPNamespace' => 'IDP-2-custom-port', 'logoCaption' => 'IDP-2:8086 staff', - 'enabled' => true, 'logoURL' => 'https://dummyimage.com/125x125/0f4fbd/ffffff.png&text=IDP+2+8086', 'description' => 'Local IDP2 for testing SSP Hub (custom port)', @@ -85,7 +82,6 @@ ], 'IDPNamespace' => 'IDP-2', 'logoCaption' => 'IDP-2 staff', - 'enabled' => true, 'logoURL' => 'https://dummyimage.com/125x125/0f4fbd/ffffff.png&text=IDP+2', 'description' => 'Local IDP2 for testing SSP Hub (normal port)', @@ -109,7 +105,6 @@ ], 'IDPNamespace' => 'IDP-3-custom-port', 'logoCaption' => 'IDP-3:8087 staff', - 'enabled' => false, 'logoURL' => 'https://dummyimage.com/125x125/0f4fbd/ffffff.png&text=IDP+3+8087', 'description' => 'Local IDP3 for testing SSP Hub (custom port)', @@ -126,7 +121,6 @@ ], 'IDPNamespace' => 'IDP-3', 'logoCaption' => 'IDP-3 staff', - 'enabled' => false, 'logoURL' => 'https://dummyimage.com/125x125/0f4fbd/ffffff.png&text=IDP+3', 'description' => 'Local IDP3 for testing SSP Hub', diff --git a/modules/material/themes/material/default/selectidp-links.twig b/modules/material/themes/material/default/selectidp-links.twig index 9a15823..3679b3f 100644 --- a/modules/material/themes/material/default/selectidp-links.twig +++ b/modules/material/themes/material/default/selectidp-links.twig @@ -55,7 +55,7 @@ - {% for idp in enabled_idps %} + {% for idp in idp_list %}
{% endfor %} - {% for idp in disabled_idps %} -
-
-
-
- -
- - {{ idp.logoCaption|e|default('
') }} -
-
-
-
- {% endfor %} - - {{ include('footer.twig') }}