Hi Scott,

Thanks, a small change made it work. The exact code is as follows.

<cas:attributes>
   <c:forEach var="attr"
items="${assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].principal.attributes}"
varStatus="loopStatus" begin="0"
end="${fn:length(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].attributes)-1}"
step="1">
        <cas:attribute>
                <cas:name>${fn:escapeXml(attr.key)}</cas:name>
                <cas:value>${fn:escapeXml(attr.value)}</cas:value>
        </cas:attribute>
   </c:forEach>
</cas:attributes>

Regards,

Robert Lewis

>Message: 2
>Date: Fri, 16 May 2008 17:44:01 -0400
>From: "Scott Battaglia" <[EMAIL PROTECTED]>
>Subject: Re: service dependent xml response
>To: "Yale CAS mailing list" <[email protected]>

>Are you grabbing the attributes from the principal or from the
>authentication object?  You want the principal-specific attributes
>to be released from the principal.

>-Scott

>On Fri, May 16, 2008 at 2:26 PM, Robert Lewis <[EMAIL PROTECTED]> wrote:

> > Hi,
> >
> > Recently I downloaded cas3.2.1 and began to prepare it for production
> > use here at Texas A&M. Since the services management servlet with its
> > attribute release is a new feature, I prepared a test to see how it
> > works.  I configured an allowed service and gave it a perl script that
> > displays the entire xml response. What I discovered was that the desired
> > attributes were not being released. I put in a log line in
> > CentralAuthenticationServiceImpl.java which shows that the variable
> > registeredService does indeed contain the desired attributes and the
> > allowed attributes responds correctly to the control in services
> > management.  I do not know jsp but looking at
> > casServiceValidationSuccess.jsp there does not seem to be any code for
> > attribute release.  It seems that right after the line
> >
> >
> >
<cas:user>${fn:escapeXml(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].
> > principal.id)}</cas:user>
> >
> > there should be lines similar to the following.
> >
> > <cas:attributes><c:forEach var="attr"
> >
> >
items="${assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].attributes}"
> > varStatus="loopStatus" begin="0"
> >
> >
end="${fn:length(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].attributes)-1}"
> > step="1">
> > <cas:attribute><cas:name>${fn:escapeXml(attr.key)}</cas:name>
> > <cas:value>${fn:escapeXml(attr.value)}</cas:value>
> > </cas:attribute>
> > </c:forEach>
> > </cas:attributes>
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to