Added cas and local auth