Hi All,

I am writing an interceptor that essentially calls the validate api of CAS 
[https://<cas-host>/cas/serviceValidate?service=xys&ticket=ST-xyz]. I am able 
to successfully do this from POSTMAN. However, I need some sample code that 
will extract the result of this call most notably the ''user". The following is 
the validation response:

<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
        <cas:authenticationSuccess>
               <cas:user>XYZ</cas:user>


        </cas:authenticationSuccess>
</cas:serviceResponse>

Is there a quick and easy way to extract the CAS user programmatically ? [apart 
from me parsing the XML using SAX/DOM parsers]?

Regards
Prasad

-- 
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to