https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39224
--- Comment #129 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 202047 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202047&action=edit Bug 39224: (QA follow-up) Add Koha::Auth::Client->for_protocol factory Callers dispatching on a provider's protocol column had to hard-code client class names (if/else chains naming Koha::Auth::Client::SAML2 etc). This adds a small factory so new auth mechanisms only need a new entry in the protocol map, and uses it at the exclusive-provider redirect site in C4::Auth. Unknown protocols throw the new Koha::Exceptions::Auth::UnsupportedProtocol exception. Also documents why the exclusive SAML2 redirect is additionally guarded by $shib (is_enabled() validates web-server integration beyond the DB enabled flag). Test plan: 1. prove t/db_dependent/Koha/Auth/Client.t 2. Configure an exclusive SAML2 provider for a hostname and verify the login page still redirects to the IdP -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
