Hi, It is also possible to increase the size of the allowed response in order to prevent mod_auth_cas from truncating this (this is currently hardcoded, but I didn't have any idea what a sane value would be so I just picked one, it may be too small for the typical use case). Do you have a sense of how large the response is?
-Phil On Fri, Apr 2, 2010 at 5:41 AM, Jérôme Rautureau <[email protected]> wrote: > Hi everybody, > > I have a problem with the property : p:ignoreAttributes="true" of > <bean class="org.jasig.cas.services.RegisteredServiceImpl"/> > > I want to ignore the attributes in the XML response for certain > services but i don't known what to put before the <cas:attributes/> > markup in order to exclude the attributes from the response. > > The attributes are written in the response even if p:ignoreAttributes="true" ; > > So a mod_auth_cas apache client truncate the response because the XML > is too long for this service, i had to specified a single attribute in > order to have a smaller response. > > Here's the file /view/jsp/protocole/2.0/casServiceValidationSuccess.jsp > > <%@ page pageEncoding="UTF-8" %> > <%@ page contentType="text/xml; charset=UTF-8" %><%@ page > session="false" %><%@ taglib prefix="c" > uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib > uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" > %><cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'> > <cas:authenticationSuccess> > > <cas:user>${fn:escapeXml(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].principal.id)}</cas:user> > <cas:attributes> > <c:forEach var="auth" > items="${assertion.chainedAuthentications}"> > <c:forEach var="attr" > items="${auth.principal.attributes}" > > > > <cas:${fn:escapeXml(attr.key)}>${fn:escapeXml(attr.value)}</cas:${fn:escapeXml(attr.key)}> > </c:forEach> > </c:forEach> > </cas:attributes> > > <c:if test="${not empty pgtIou}"> > <cas:proxyGrantingTicket>${pgtIou}</cas:proxyGrantingTicket> > </c:if> > <c:if test="${fn:length(assertion.chainedAuthentications) > 1}"> > <cas:proxies> > <c:forEach var="proxy" items="${assertion.chainedAuthentications}" > varStatus="loopStatus" begin="0" > end="${fn:length(assertion.chainedAuthentications)-2}" step="1"> > > <cas:proxy>${fn:escapeXml(proxy.principal.id)}</cas:proxy> > </c:forEach> > </cas:proxies> > </c:if> > </cas:authenticationSuccess> > </cas:serviceResponse> > > Thanks in advance. > > -- > Jérôme Rautureau > Développeur Systèmes - CdA La Rochelle > > -- > 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 > > -- 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
