Adapted casServiceValidationSuccess.jsp file to included attributes in XML (required by phpCAS)
Benjamin Renard

Benjamin Renard commited on 2014-12-29 18:22:57
Showing 1 changed files, with 7 additions and 0 deletions.

... ...
@@ -1,6 +1,13 @@
1 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 2
 	<cas:authenticationSuccess>
3
+        <c:forEach var="auth" items="${assertion.chainedAuthentications}">
3 4
 		<cas:user>${fn:escapeXml(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].principal.id)}</cas:user>
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>
4 11
 <c:if test="${not empty pgtIou}">
5 12
 		<cas:proxyGrantingTicket>${pgtIou}</cas:proxyGrantingTicket>
6 13
 </c:if>
7 14