<%@ page trimDirectiveWhitespaces="true" %> <%@ page session="true" %> <%@ page import="java.util.List, org.openid4java.message.AuthSuccess, org.openid4java.server.InMemoryServerAssociationStore, org.openid4java.message.DirectError,org.openid4java.message.Message,org.openid4java.message.ParameterList, org.openid4java.discovery.Identifier, org.openid4java.discovery.DiscoveryInformation, org.openid4java.message.ax.FetchRequest, org.openid4java.message.ax.FetchResponse, org.openid4java.message.ax.AxMessage, org.openid4java.message.*, org.openid4java.OpenIDException, java.util.List, java.io.IOException, javax.servlet.http.HttpSession, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.openid4java.server.ServerManager, org.openid4java.consumer.InMemoryConsumerAssociationStore, org.openid4java.consumer.VerificationResult" %> <%@ page import="org.openid4java.message.Parameter" %> <%@ page import="org.crosswire.utils.Sessions" %> <% ParameterList requestp=(ParameterList) session.getAttribute("parameterlist"); String sessionHash = Sessions.getSessionHash(request); System.out.println("sessionHash: " + sessionHash); if (sessionHash != null) { Long userID = (Long)Sessions.getInstance().getSessionAttribute(sessionHash, "userID"); String emailAddress = (String)Sessions.getInstance().getSessionAttribute(sessionHash, "emailAddress"); if (userID != null) { System.out.println("userID: " + userID); // requestp.set(new Parameter("openid.claimed_id", sessionHash)); session.setAttribute("openid.claimed_id", sessionHash); session.setAttribute("myOpenIDProvider.email", emailAddress); // session.setAttribute("openid.identity", sessionHash); // session.setAttribute("parameterlist", requestp); session.setAttribute("authenticatedAndApproved", Boolean.TRUE); // No need to change openid.* session vars response.sendRedirect("../?_action=complete"); } } String openidrealm=requestp.hasParameter("openid.realm") ? requestp.getParameterValue("openid.realm") : null; String openidreturnto=requestp.hasParameter("openid.return_to") ? requestp.getParameterValue("openid.return_to") : null; String openidclaimedid=requestp.hasParameter("openid.claimed_id") ? requestp.getParameterValue("openid.claimed_id") : null; String openididentity=requestp.hasParameter("openid.identity") ? requestp.getParameterValue("openid.identity") : null; String action = request.getParameter("action"); if (action == null) { String site=(String) (openidrealm == null ? openidreturnto : openidrealm); %>

NTVMR Permission Request

This website would like permission to access your NTVMR profile.

ClaimedID:
<%= openidclaimedid%>

Identity:
<%= openididentity %> 

Site:
 <%= site %>

Authorize Reject <% } else { if ("authorize".equals(action)) { session.setAttribute("authenticatedAndApproved", Boolean.TRUE); // No need to change openid.* session vars } else { session.setAttribute("authenticatedAndApproved", Boolean.FALSE); // No need to change openid.* session vars } response.sendRedirect("../?_action=complete"); } %>