Show app.jsp syntax highlighted
<%--
* Copyright (C) 2002-2004 Ping Identity Corporation. All rights reserved.
*
* Licensed under the Open Software License version 2.1
*
* A copy of this license has been provided with the distribution of this
* software. Additionally, a copy of this license is available at:
* http://www.pingidentity.com/license
--%>
<%@ page import="org.sourceid.idff12.servlet.sp.SSOInitiateServlet,
org.sourceid.idff12.servlet.sp.FTNInitServlet,
org.sourceid.idff12.protocol.idff12.ProfileURIs,
org.sourceid.idff12.servlet.sp.RNIInitiateServlet,
org.sourceid.idff12.servlet.sp.SingleLogoutService,
fi.hip.gb.gridlib.idff12.servlet.PDInitiateServlet"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt" %>
<c:if test="${sessionScope.spUser != null}">
<html>
<head>
<title>NetGate SP Federation Service</title>
</head>
<body>
<table width="100%">
<tr>
<td align="center"<h1>GridBlocks SP Federation Service</h1></td>
</tr>
</table>
<hr>
<table>
<tr>
<td>Hello <b><c:out value="${sessionScope.spUser.username}" /></b>, welcome to the SP Application!</td>
</tr>
<tr><td><br></td></tr>
<tr>
<td>Click <a href="<c:url value="${requestScope.baseUrl}/sp/logout"/>">here</a> to logout locally.</td>
</tr>
<c:if test="${sessionScope.spSession != null and sessionScope.currentIdp != null}" >
<tr>
<td>Click <a href="<c:url value="/sp/SingleLogoutService"/>">here</a> to logout of all single sign-on sessions.
<c:url value="/sp/SingleLogoutService" var="sloSoap" >
<c_rt:param name="<%=SingleLogoutService.PARAM_USE_PROFILE%>"><%=ProfileURIs.SLO_SP_SOAP%></c_rt:param>
</c:url>
<c:url value="/sp/SingleLogoutService" var="sloHttp" >
<c_rt:param name="<%=SingleLogoutService.PARAM_USE_PROFILE%>"><%=ProfileURIs.SLO_SP_HTTP%></c_rt:param>
</c:url>
(Using <a href="<c:out value="${sloSoap}"/>" />SOAP</a> or <a href="<c:out value="${sloHttp}"/>" />HTTP</a> profile)
</td>
</tr>
</c:if>
<tr><td><br></td></tr>
</table>
<table>
<c:choose>
<c:when test="${sessionScope.currentIdp != null}" >
<tr><td>
You have signed in via SSO using IDP: <c:out value="${sessionScope.currentIdp}"/>. <br>
<c:if test="${sessionScope.spSession != null}" >
Would you like to <a href="<c:url value="/sp/PDInitiate"/>" />request a proxy certificate</a>?
<c:url value="/sp/PDInitiate" var="pdSoap" >
<c_rt:param name="<%=PDInitiateServlet.PARAM_USE_PROFILE%>"><%=ProfileURIs.PD_SP_SOAP%></c_rt:param>
</c:url>
<c:url value="/sp/PDInitiate" var="pdHttp" >
<c_rt:param name="<%=PDInitiateServlet.PARAM_USE_PROFILE%>"><%=ProfileURIs.PD_SP_HTTP%></c_rt:param>
</c:url>
(Using <a href="<c:out value="${pdSoap}"/>" />SOAP</a> or <a href="<c:out value="${pdHttp}"/>" />HTTP</a> profile)
<br>
Would you like to <a href="<c:url value="/sp/RNIInitiate"/>" />register a new name identifier</a>?
<c:url value="/sp/RNIInitiate" var="rniSoap" >
<c_rt:param name="<%=RNIInitiateServlet.PARAM_USE_PROFILE%>"><%=ProfileURIs.RNI_SP_SOAP%></c_rt:param>
</c:url>
<c:url value="/sp/RNIInitiate" var="rniHttp" >
<c_rt:param name="<%=RNIInitiateServlet.PARAM_USE_PROFILE%>"><%=ProfileURIs.RNI_SP_HTTP%></c_rt:param>
</c:url>
(Using <a href="<c:out value="${rniSoap}"/>" />SOAP</a> or <a href="<c:out value="${rniHttp}"/>" />HTTP</a> profile)
<br>
Would you like to <a href="<c:url value="/sp/FTNInitiate"/>" />terminate that federation</a>?
<c:url value="/sp/FTNInitiate" var="ftnSoap" >
<c_rt:param name="<%=FTNInitServlet.PARAM_USE_PROFILE%>"><%=ProfileURIs.FTN_SP_SOAP%></c_rt:param>
</c:url>
<c:url value="/sp/FTNInitiate" var="ftnHttp" >
<c_rt:param name="<%=FTNInitServlet.PARAM_USE_PROFILE%>"><%=ProfileURIs.FTN_SP_HTTP%></c_rt:param>
</c:url>
(Using <a href="<c:out value="${ftnSoap}"/>" />SOAP</a> or <a href="<c:out value="${ftnHttp}"/>" />HTTP</a> profile)
</c:if>
</td></tr>
</c:when>
<c:otherwise>
<c:forEach items="${requestScope.idpProviderIds}" var="providerId" varStatus="status" >
<c:if test="${status.first}">
<tr><td colspan="3"><b>Would you like to federate your account with an IDP?</b></td></tr>
<tr><td align="center">Provider</td><td align="center" colspan="2">Profile</td></tr>
</c:if>
<tr>
<c:url value="${requestScope.baseSsoInitUrl}" var="federatePostUrl" >
<c_rt:param name="<%=SSOInitiateServlet.PARAM_ACTION%>" value="<%=SSOInitiateServlet.PARAM_ACTION_FEDERATE_VALUE%>" />
<c_rt:param name="<%=SSOInitiateServlet.PARAM_PROVIDER_ID%>"><c:out value="${providerId}" /></c_rt:param>
<c_rt:param name="<%=SSOInitiateServlet.PARAM_IS_PASSIVE%>" value="false" />
<c_rt:param name="<%=SSOInitiateServlet.PARAM_FORCED_PROFILE%>" value="<%=SSOInitiateServlet.PARAM_FORCED_PROFILE_POST_VALUE%>" />
</c:url>
<c:url value="${requestScope.baseSsoInitUrl}" var="federateArtUrl" >
<c_rt:param name="<%=SSOInitiateServlet.PARAM_ACTION%>" value="<%=SSOInitiateServlet.PARAM_ACTION_FEDERATE_VALUE%>" />
<c_rt:param name="<%=SSOInitiateServlet.PARAM_PROVIDER_ID%>"><c:out value="${providerId}" /></c_rt:param>
<c_rt:param name="<%=SSOInitiateServlet.PARAM_IS_PASSIVE%>" value="false" />
<c_rt:param name="<%=SSOInitiateServlet.PARAM_FORCED_PROFILE%>" value="<%=SSOInitiateServlet.PARAM_FORCED_PROFILE_ARTIFACT_VALUE%>" />
</c:url>
<td><c:out value="${providerId}" /></td>
<td><a href="<c:out value="${federatePostUrl}" />">post</a></td>
<td><a href="<c:out value="${federateArtUrl}" />">artifact</a></td>
</tr>
</c:forEach>
</c:otherwise>
</c:choose>
<tr><td><br></td></tr>
</table>
</body>
</html>
</c:if>
See more files for this project here