Successfully able to authenticate CAS. Need to work on cookies.