Rebuild casLogin to authenticate through CAS Rest API