Multidomain MDM
- Multidomain MDM 10.4 HotFix 3
- All Products
Interface Method Name
| Description
|
---|---|
initialize
| IDD calls this method before any other method of the Login Provider implementation and passes a set of properties that describe the context of execution. In IDD, these properties contain an entry, which can be referenced as LoginProvider. The property SSO_POST_REDIRECT_PAGE_PROPERTY contains the URL of the jsf page that can POST data to external login provider. A Login Provider implementation might use this page to redirect IDD to External Login Page using POST method.
|
isUseIDDLoginForm
| This method must return FALSE.
|
redirectToProviderLoginPage
| This method must form URL to external login form and call redirection to that page. You can also redirect to external login page using the POST method.
|
extractLoginCredentials
| IDD invokes this method when a new user authentication request arrives. If the request contains information from external identity provider, such as request parameters, and cookies, then this method must extract them and return the LoginCredentials (com.siperian.bdd.security.LoginCredentials) instance with properly filled fields. If the request does not contain authentication information, then the method must return NULL.
|
encodeComponentUrl
| This method is not implemented as user name and password is requested by external login form that IDD does not recognize.
|
onLogout
| This method is called when a user logs out. It can run a logout on external identity provider and cleanup parameters defined by the requestLoginCredentials method.
|
getLogoImageBody
| This method must return NULL.
|
http://localhost:8080/bdd?internal_login_form=true
https://na7.salesforce.com/secur/frontdoor.jsp?sid=<SFDC_API_SESSIONID>&retUrl=https://na7.salesforce.com/home/home.jsp
Parameter Name
| Usage
|
---|---|
providerGateURL
| Must be a string value. It defines the URL where the form will be submitted (form action).
|
authParameters
| It is a map of key–value pairs. Each value pair is used for creating hidden input. Map entry key is used as the input name and value as input field value.
|
public void redirectToProviderLoginPage(HttpServletRequest httpRequest, HttpServletResponse httpResponse, String returnUrl) throws LoginProviderException { RequestDispatcher dispatcher = httpRequest.getRequestDispatcher(postRedirectPageUrl); httpRequest.setAttribute( PROVIDER_GATE_URL_ATTR, authReq.getOPEndpoint() ); httpRequest.setAttribute( AUTH_PARAMETERS_ATTR, authReq.getParameterMap() ); dispatcher.forward( httpRequest, httpResponse ); }
if("gotoLogoutPage".equalsIgnoreCase(httpRequest.getParameter("logoutParam"))){ try { httpResponse.sendRedirect("http://www.google.com/"); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
{\"logoutURL\":\"/mdm/entity360view/?logoutParam=gotoLogoutPage\",\"kerberos\":\"true\"}