[Koha-bugs] [Bug 23167] We should factor out shared code from Auth_with_cas.pm and Auth_with_shibboleth.pm