2f6f4e3ef562c87b5c71888fadd9f15f71d4c136
Benjamin Renard Added original casServiceVa...

Benjamin Renard authored 9 years ago

1) <%@ 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'>
2) 	<cas:authenticationSuccess>
Benjamin Renard Adapted casServiceValidatio...

Benjamin Renard authored 9 years ago

3)         <c:forEach var="auth" items="${assertion.chainedAuthentications}">
Benjamin Renard Added original casServiceVa...

Benjamin Renard authored 9 years ago

4) 		<cas:user>${fn:escapeXml(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].principal.id)}</cas:user>
Benjamin Renard Adapted casServiceValidatio...

Benjamin Renard authored 9 years ago

5)                 <c:forEach var="attr" items="${auth.principal.attributes}" >
6)                    <cas:attribute
7)                         name="${fn:escapeXml(attr.key)}" 
8)                         value="${fn:escapeXml(attr.value)}"/>
9)                 </c:forEach>
10)         </c:forEach>
Benjamin Renard Added original casServiceVa...

Benjamin Renard authored 9 years ago

11) <c:if test="${not empty pgtIou}">
12) 		<cas:proxyGrantingTicket>${pgtIou}</cas:proxyGrantingTicket>
13) </c:if>
14) <c:if test="${fn:length(assertion.chainedAuthentications) > 1}">
15) 		<cas:proxies>
16) <c:forEach var="proxy" items="${assertion.chainedAuthentications}" varStatus="loopStatus" begin="0" end="${fn:length(assertion.chainedAuthentications)-2}" step="1">
17) 			<cas:proxy>${fn:escapeXml(proxy.principal.id)}</cas:proxy>
18) </c:forEach>
19) 		</cas:proxies>
20) </c:if>
21) 	</cas:authenticationSuccess>