I've been trying now for a couple of days to have the "cas:serviceResponse" 
come back with other information than just the following:
<cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
    <cas:authenticationSuccess>
        <cas:user>test_user</cas:user>

        
<cas:proxyGrantingTicket>PGTIOU-3-Ao6yct3bf7ux9mIhFKJo-myserver.com</cas:proxyGrantingTicket>


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

I want to add other things specifically other information about the user.

We are using the UsernamePasswordCredentialsToPrincipalResolver and a custom 
"attributeRepository" which extends AbstractFlatteningPersonAttributeDao.

I've traced through the code and see that indeed my attributes are set, but 
they are not returning in the "serverResponse" payload. 

I've tried altering the "casServiceValidationSuccess.jsp" as was suggested in 
https://wiki.jasig.org/display/CASC/CASifying+OpenCms - although we're not 
using OpenCms, but to no avail. When the following jstl tag is used, the 
principal has no attributes that I can access in the jsp:

<c:if
 
test="${fn:length(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].principal.attributes)
 > 0}">

What am I doing wrong? We really don't want to use SAML at this point, we just 
want to add to what we already have.

Thanks in advance,

Russ Baker
-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to