1 <%@ page import="edu.internet2.middleware.shibboleth.idp.authn.LoginContext" %>
2 <%@ page import="edu.internet2.middleware.shibboleth.idp.session.*" %>
3 <%@ page import="edu.internet2.middleware.shibboleth.idp.util.HttpServletHelper" %>
4 <%@ page import="org.opensaml.saml2.metadata.*" %>
7 LoginContext loginContext = HttpServletHelper.getLoginContext(HttpServletHelper.getStorageService(application),
10 EntityDescriptor entityDescriptor = HttpServletHelper.getRelyingPartyMetadata(loginContext.getRelyingPartyId(),
11 HttpServletHelper.getRelyingPartyConfirmationManager(application));
13 Session userSession = HttpServletHelper.getUserSession(request);
19 <title>Shibboleth Identity Provider - Login</title>
23 <img src="<%= request.getContextPath() %>/images/logo.jpg" />
24 <h2>Shibboleth Identity Provider Login to Service Provider <%= entityDescriptor.getEntityID() %></h2>
26 Existing Session: <%= userSession != null %><br/>
27 Requested Authentication Methods: <%= loginContext.getRequestedAuthenticationMethods() %><br/>
28 Attempting Authentication Method: <%= loginContext.getAttemptedAuthnMethod() %> <br/>
29 Is Forced Authentication: <%= loginContext.isForceAuthRequired() %><br/>
32 <% if ("true".equals(request.getAttribute("loginFailed"))) { %>
33 <p><font color="red">Authentication Failed</font></p>
36 <% if(request.getAttribute("actionUrl") != null){ %>
37 <form action="<%=request.getAttribute("actionUrl")%>" method="post">
39 <form action="j_security_check" method="post">
44 <td><input name="j_username" type="text" tabindex="1" /></td>
48 <td><input name="j_password" type="password" tabindex="2" /></td>
51 <td colspan="2"><input type="submit" value="Login" tabindex="3" /></td>