If you are testing the CAS login itself, I can suggest using the JMeter HTTP Proxy server to record the login process, catch all the transmitted values, detect those that are dynamic and process them with the expressions Expression Extractor, XPath, Beanshell, etc. . Post Processors - what you like best.
In case your application is located behind CAS, I assume that logging into CAS simply adds a cookie, and your application considers that user authentication is based on it. In this case, you can simply store cookies somewhere in the CSV file and use them through the HTTP Cookie Manager to simulate authenticated users.
source share