update the cas config for direct request