cas-security-spring-boot-starter
cas-security-spring-boot-starter copied to clipboard
[Question] How to extract attributes from XML document return by ticket validation?
When I checked the list of calls made to CAS server by looking at the request initiator chain, the first call to the CAS server is made (https://cas-server-address/cas/login), but I don't see the second call to the server for ticket validation (i.e., a call to https://cas-server-address/cas/serviceValidate) that will return an XML document with user and authtype attributes that I want to extract to store in the database.
My questions are:
- Why does the second call to the CAS server not show in the request initiator chain?
- How do I extract
userandauthtypeattributes from the XML document and store them in the database?
/cas/serviceValidate is server to server call, thus you can't see inside user-agent.
You could use AttributePrincipalImpl and get attributes