0 votes

We are creating an in-house developed portal for our customers. One of the features in our portal will be the user management which will be provided through Adaxes Web Interface. The customer will log in to our developed portal through AD credentials. Is there a way to pass AD credentials off to Adaxes' Web Interface? In a way of a cookie? session? URL encoded string?

Any information will help the developers on our end.

by (80 points)

1 Answer

0 votes
by (18.0k points)

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

0

Since we are developing our in house application in PHP, I will keep every one updated if we decide to use the PHP Microsoft AJAX Library located at http://phpmsajax.codeplex.com

0

Hello,

Is something like this still possible with recent versions of Adaxes? e.g. with 2018.2

Thanks,
Chris

0

Nevermind, I see that it is. You just post to /SignIn instead.

Thanks!
-Chris

Related questions

0 votes
1 answer

Is it possible to pass credentials to Adaxes web interface in order to skip log on?

asked Sep 7, 2011 by abdutal (110 points)
0 votes
1 answer

Hi We have Adaxes available through Azure app proxy as we have external support for some of our companies and these people don't have VPN available to them. The ... change the Web Interface Address to the Azure link? Will this break anything? Thanks Matt

asked Jan 20 by chappers77 (1.2k points)
0 votes
1 answer

I would like to change department without a script just yet if possible on multiple accounts. If I cant do this then I will entertain custom script Thanks :)

asked Nov 23, 2021 by will17 (350 points)
0 votes
1 answer

We have some accounts that we would like to prevent from changing their password on login when it is expired. This is because we have saml setup on individual interface pages ... of a loophole for us as we require dual factor and use saml to accomplish this.

asked Oct 26, 2021 by mark.it.admin (2.1k points)
0 votes
1 answer

I'm trying to provide the capability for ID admin users to perform AD tasks using the web interface. I am not able to edit attributes for an existing user when ... any attribute it gives me an error "An unexpected response was received from the server".

asked Apr 8, 2021 by atnorman (120 points)
2,803 questions
2,535 answers
6,605 comments
62,311 users