kakawait / cas-security-spring-boot-starter

Spring boot starter for Apereo CAS client fully integrated with Spring security
MIT License
153 stars 45 forks source link

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

Open mkaivs opened 3 years ago

mkaivs commented 3 years ago

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:

kakawait commented 2 years ago

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

You could use AttributePrincipalImpl and get attributes