From 59899eca6b6c4e654a22399de17b06ebc618113f Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 5 Aug 2025 15:34:17 -0300 Subject: [PATCH] Bug 40596: Add CAS and Shibboleth to protocol class mapping Updates the protocol_to_class_mapping to include CAS and Shibboleth protocols, enabling the upgrade_class() method to properly instantiate the correct provider classes. Changes: * Adds CAS => 'Koha::Auth::Identity::Provider::CAS' * Adds Shibboleth => 'Koha::Auth::Identity::Provider::Shibboleth' Test plan: 1. Apply patch 2. Create identity providers with CAS and Shibboleth protocols 3. Verify upgrade_class() returns correct specialized classes 4. Run t/db_dependent/Koha/Auth/Identity/Provider.t --- Koha/Auth/Identity/Provider.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Koha/Auth/Identity/Provider.pm b/Koha/Auth/Identity/Provider.pm index 0916a0173fc..168aef94d6f 100644 --- a/Koha/Auth/Identity/Provider.pm +++ b/Koha/Auth/Identity/Provider.pm @@ -217,8 +217,10 @@ implementing I. To be used by B. sub protocol_to_class_mapping { return { - OAuth => 'Koha::Auth::Identity::Provider::OAuth', - OIDC => 'Koha::Auth::Identity::Provider::OIDC', + OAuth => 'Koha::Auth::Identity::Provider::OAuth', + OIDC => 'Koha::Auth::Identity::Provider::OIDC', + CAS => 'Koha::Auth::Identity::Provider::CAS', + Shibboleth => 'Koha::Auth::Identity::Provider::Shibboleth', }; } -- 2.50.1