Implementing authentication via CAS