Add cas config flag for coping with redirects