idpSSOInit.jsp revision 0e107349d3f7763a9c67fb2f32c86c11364c72cf
98N/A $Id: idpSSOInit.jsp,v 1.9 2009/06/24 23:05:30 mrudulahg Exp $
98N/A<!-- %@ page import="com.iplanet.am.util.Debug" % -->
98N/A<%@ page import="com.sun.identity.shared.debug.Debug" %>
98N/A<%@ page import="com.sun.identity.saml2.common.SAML2Constants" %>
98N/A<%@ page import="com.sun.identity.saml2.common.SAML2Exception" %>
98N/A<%@ page import="com.sun.identity.saml2.common.SAML2Utils" %>
156N/A<%@ page import="com.sun.identity.saml.common.SAMLUtils" %>
98N/A<%@ page import="com.sun.identity.saml2.profile.IDPSSOUtil" %>
98N/A<%@ page import="java.io.PrintWriter" %>
98N/A idpssoinit.jsp initiates Unsolicited SSO at the Identity Provider.
98N/A this parameter is /realm_name/IDP name.
98N/A 3. RelayState Target URL on successful complete of SSO/Federation
98N/A SSO/Federation user will be redirected to the TARGET URL.
98N/A if ((cachedResID != null) && (cachedResID.length() != 0)) {
156N/A IDPSSOUtil.sendResponse(request, response, cachedResID);
156N/A String metaAlias = request.getParameter("metaAlias");
98N/A if ((metaAlias == null) || (metaAlias.length() == 0)) {
98N/A SAML2Utils.bundle.getString("nullIDPEntityID"));
98N/A String spEntityID = request.getParameter("spEntityID");
98N/A if ((spEntityID == null) || (spEntityID.length() == 0)) {
98N/A SAML2Utils.bundle.getString("nullSPEntityID"));
98N/A String relayState = SAML2Utils.getRelayState(request);
98N/A IDPSSOUtil.doSSOFederate(request,response,new PrintWriter(out, true),null,spEntityID,
355N/A SAML2Utils.debug.error("Error processing request " , sse);
98N/A SAML2Utils.bundle.getString("requestProcessingError") + " " +
sse.getMessage());
SAML2Utils.debug.error("Error processing request ",e);
SAML2Utils.bundle.getString("requestProcessingError") + " " +
e.getMessage());