cas-security-spring-boot-starter icon indicating copy to clipboard operation
cas-security-spring-boot-starter copied to clipboard

[Question] How to extract attributes from XML document return by ticket validation?

Open mkaivs opened this issue 4 years ago • 1 comments

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 user and authtype attributes from the XML document and store them in the database?

mkaivs avatar Feb 10 '21 18:02 mkaivs

/cas/serviceValidate is server to server call, thus you can't see inside user-agent.

You could use AttributePrincipalImpl and get attributes

kakawait avatar Oct 17 '22 09:10 kakawait