Prepare CAS authentication