Hello,
It is possible to pass user credentials programmatically to Adaxes Web Interface. Here you have 2 options:
1. Call the SignIn method on the Adaxes authentication web service (AuthenticationService.asmx).
Using ASP.NET AJAX Extentions:
Sys.Net.WebServiceProxy.invoke("/AdaxesAdmin/AuthenticationService.asmx", "SignIn", false,
{'username': username, 'password': password}, function(){location.href = "/AdaxesAdmin/Default.aspx"},
function(error){alert(error.get_message())});
Using jQuery:
$.ajax({
'type':'POST',
'url': "/AdaxesAdmin/AuthenticationService.asmx/SignIn",
'data': "{username: \""+ username + "\", password: \"" + password + "\"}",
'dataType': "json",
'contentType': "application/json; charset=utf-8",
'success': function(){location.href = "/AdaxesAdmin/Default.aspx"},
'error': function(jqXHR, textStatus, errorThrown)
{
var responseJson = $.parseJSON(jqXHR.responseText);
alert(responseJson.Message);
}
});
Please note that this method will work only if your web site and Adaxes Web Interface are hosted in the same domain.
2. Pass user name and password in the sign in URL:
http://server.com/AdaxesAdmin/SignIn.aspx?username=user@domain.com&password=pwd