+

Added original casServiceValidationSuccess.jsp (cas-toolbox-3.4.7-1)

Benjamin Renard [2014-12-29 18:10:37]
Added original casServiceValidationSuccess.jsp (cas-toolbox-3.4.7-1)
Filename
custom/webpages/WEB-INF/view/jsp/protocol/2.0/casServiceValidationSuccess.jsp
diff --git a/custom/webpages/WEB-INF/view/jsp/protocol/2.0/casServiceValidationSuccess.jsp b/custom/webpages/WEB-INF/view/jsp/protocol/2.0/casServiceValidationSuccess.jsp
new file mode 100644
index 0000000..5b9f229
--- /dev/null
+++ b/custom/webpages/WEB-INF/view/jsp/protocol/2.0/casServiceValidationSuccess.jsp
@@ -0,0 +1,15 @@
+<%@ 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>
+<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>
\ No newline at end of file
ViewGit