Skip to content

Instantly share code, notes, and snippets.

@jtgasper3
Last active August 29, 2015 14:07
Show Gist options
  • Save jtgasper3/52aa5adc28ab2be5bd13 to your computer and use it in GitHub Desktop.
Save jtgasper3/52aa5adc28ab2be5bd13 to your computer and use it in GitHub Desktop.
The lower half of the file with the attribute release code in place.
<%-- Begin Ldap Attributes --%>
<c:if test="${fn:length(assertion.chainedAuthentications) > 0}">
<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>
<%-- End Ldap Attributes --%>
</cas:authenticationSuccess>
</cas:serviceResponse>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment