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