ConfigureSocialAuthN.jsp revision 3fc1b5e9b2ff286cd528a06154cc998198de1e70
1047N/A ~ Distribution License (the License). You may not use this file except in compliance with the
1047N/A ~ You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
1047N/A ~ When distributing Covered Software, include this CDDL Header Notice in each file and include
1047N/A ~ the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
1047N/A<%@page import="org.owasp.esapi.ESAPI" %>
1047N/A<%@taglib uri="/WEB-INF/jato.tld" prefix="jato" %>
1047N/A<%@taglib uri="/WEB-INF/cc.tld" prefix="cc" %>
1047N/A request.setCharacterEncoding("UTF-8");
1047N/A locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
1047N/A <cc:header name="hdrCommon" pageTitle="webconsole.title" bundleID="amConsole" copyrightYear="2014" fireDisplayEvents="true">
1047N/A <script language="javascript" src="../console/js/am.js"></script>
1907N/A <script language="javascript" src="../com_sun_web_ui/js/dynamic.js"></script>
1047N/A <div id="main" style="position: absolute; margin: 0; border: none; padding: 0; width: 100%; height: 101%;">
1047N/A return confirm("<cc:text name="txtLogout" defaultValue="masthead.logoutMessage" bundleID="amConsole"/>");
1047N/A <cc:primarymasthead name="mhCommon" bundleID="amConsole" logoutOnClick="return confirmLogout();"
1047N/A locale="<%=((com.sun.identity.console.base.AMViewBeanBase)viewBean).getUserLocale()%>"/>
1907N/A pageTitleText="page.title.configure.social.authentication"
1907N/A pageTitleHelpMessage="page.desc.configure.social.authentication"
1047N/A <script type="text/javascript">
1047N/A var userLocale = "<%= viewBean.getUserLocale().toString() %>";
1047N/A var msgConfiguring = "<p><img src=\"../console/images/processing.gif\" width=\"66\" height\"66\"/></p><cc:text name="txtConfiguring" defaultValue="social.configuration.waiting" bundleID="amConsole" escape="false" />";
1907N/A var msgConfigured = "<p> </p><input name=\"btnOK\" type=\"submit\" class=\"Btn1\" value=\"<cc:text name="txtOKBtn" defaultValue="ajax.ok.button" bundleID="amConsole" />\" onClick=\"document.location.replace(\'../task/Home\');return false;\" /></div></p>";
1047N/A var closeBtn = "<p> </p><p><div class=\"TtlBtnDiv\"><input name=\"btnClose\" type=\"submit\" class=\"Btn1\" value=\"<cc:text name="txtCloseBtn" defaultValue="ajax.close.button" bundleID="amConsole" />\" onClick=\"focusMain();return false;\" /></div></p>";
1047N/A var frm = document.forms['ConfigureSocialAuthN'];
1047N/A btn1.onclick = submitPage;
2210N/A btn2.onclick = cancelOp;
1907N/A String type = request.getParameter("type");
1907N/A if (!ESAPI.validator().isValidInput("Social AuthN Type", type, "HTTPParameterValue", 2000, true)) {
1907N/A out.println("var type = null;");
1047N/A document.getElementById('dlg').innerHTML = '<center>' + msgConfiguring + '</center>';
1907N/A var url = "../console/ajax/AjaxProxy.jsp";
1502N/A var params = 'locale=' + userLocale + '&class=com.sun.identity.workflow.ConfigureSocialAuthN' + getData();
if (ajaxObj.readyState == 4) {
var result = hexToString(ajaxObj.responseText);
document.getElementById('dlg').innerHTML = msg;