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