how to authenticate a remote instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2017 10:59 PM
Hi All,
I am creating a module in line with team development > remote instance.
In this module, I would like the users to give their instances URL, user name and password and get authenticated in the local instance. However, on clicking on the UI Action - Test Connection (Note : this ui action was created by doing an insert and stay on UI action- "Test Connection" present on sys_update_set_source table ) , I get an info message "Unable to validate connection: Missing URL" , any suggestion please why this is happening
UI Action( )
function validateConnection() {
var url = g_form.getValue('url');
url = url.trim();
var username = g_form.getValue('u_username');
var password = g_form.getValue('u_password');
var view = g_form.getValue('sysparm_view');
var sysid = gel('sys_uniqueValue').value;
var doEncrypt = g_form.isNewRecord()
|| g_form.modifiedFields['sys_update_set_source.password'] === true;
var ajax = new GlideAjax("com.glide.update.UpdateSetAjaxProcessor");
ajax.addParam("sysparm_function", "validateConnection");
ajax.addParam("sysparm_url", url);
ajax.addParam("sysparm_username", username);
ajax.addParam("sysparm_password", password);
ajax.addParam("sysparm_sysid",sysid);
ajax.addParam("sysparm_do_encrypt", doEncrypt);
ajax.addParam("ni.nolog.sysparm_password", "true");
ajax.getXML();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-09-2017 04:07 AM
You can find it in installation exits -> Login
