Bug 19160: Move the code from controller to C4::Auth_with_cas