proxyidpfinder.jsp revision 984ea967792540448d05fba2ac6fad5dadf91fd6
0N/A<%@ page import="com.sun.identity.shared.encode.Base64" %>
0N/A<%@ page import="com.sun.identity.saml2.common.SAML2Utils" %>
0N/A<%@ page import="java.util.List" %>
0N/A String errorURL = "idpfinderError.html";
0N/A HttpSession hts = request.getSession();
0N/A idpListSt = (String) hts.getAttribute("_IDPLIST_");
0N/A if (idpListSt != null && !idpListSt.isEmpty()) {
0N/A lista = idpListSt.split(" ");
0N/A relayState = (String) hts.getAttribute("_RELAYSTATE_");
0N/A if (relayState.isEmpty()) {
0N/A requestedAuthnContext = (String) hts.getAttribute("_REQAUTHNCONTEXT_");
0N/A if (requestedAuthnContext.isEmpty()) {
0N/A String spRequester = (String) hts.getAttribute("_SPREQUESTER_");
0N/A if (spRequester == null) response.sendRedirect(errorURL);
0N/A samlIdP = request.getParameter("_saml_idp");
0N/A if (samlIdP != null && !samlIdP.isEmpty()) {
0N/A hts.removeAttribute("_IDPLIST_");
0N/A hts.removeAttribute("_RELAYSTATE_");
0N/A hts.removeAttribute("_SPREQUESTER_");
0N/A hts.removeAttribute("_REQAUTHNCONTEXT_");
0N/A if (relayState.indexOf("?") == -1) {
0N/A response.sendRedirect(relayState + "_saml_idp=" + samlIdP);
0N/A <p>You are here because you initiated a request in the Service Provider <b><%= spRequester %></b> and
0N/A if (lista != null && lista.length > 0) {