Bugzilla – Attachment 185170 Details for
Bug 40596
Migrate CAS and Shibboleth into the identity providers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40596: Add CAS and Shibboleth to protocol class mapping
Bug-40596-Add-CAS-and-Shibboleth-to-protocol-class.patch (text/plain), 1.51 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-08-06 20:05:01 UTC
(
hide
)
Description:
Bug 40596: Add CAS and Shibboleth to protocol class mapping
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-08-06 20:05:01 UTC
Size:
1.51 KB
patch
obsolete
>From 59899eca6b6c4e654a22399de17b06ebc618113f Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >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<classes>. To be used by B<upgrade_class>. > > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40596
:
185168
|
185169
| 185170 |
185171
|
185172
|
185173
|
185174
|
185175
|
185176
|
185177