Zionetrix::Git
Repositories
Help
Report an Issue
cas-common-config
Code
Commits
Branches
Tags
Search
Tree:
2f6f4e3
Branches
Tags
master
cas-common-config
custom
webpages
WEB-INF
view
jsp
protocol
2.0
casServiceValidationSuccess.jsp
Adapted casServiceValidationSuccess.jsp file to included attributes in XML (required by phpCAS)
Benjamin Renard
commited
2f6f4e3
at 2014-12-29 18:22:57
casServiceValidationSuccess.jsp
Blame
History
Raw
<%@ 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> <c:forEach var="auth" items="${assertion.chainedAuthentications}"> <cas:user>${fn:escapeXml(assertion.chainedAuthentications[fn:length(assertion.chainedAuthentications)-1].principal.id)}</cas:user> <c:forEach var="attr" items="${auth.principal.attributes}" > <cas:attribute name="${fn:escapeXml(attr.key)}" value="${fn:escapeXml(attr.value)}"/> </c:forEach> </c:forEach> <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>