Passing AD credentials to the Web Interface?

General discussion of using Adaxes for Active Directory management and administration
Post Reply
tkrn
Posts: 11
Joined: Thu Nov 18, 2010 9:01 am

Passing AD credentials to the Web Interface?

Fri May 06, 2011 5:12 am

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.

User avatar
Eugene Pavlov
Posts: 446
Joined: Wed Apr 29, 2009 11:10 pm
Contact:

Re: Passing AD credentials to the Web Interface?

Wed May 11, 2011 7:05 am

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:

Code: Select all

   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:

Code: Select all

            $.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
Active Directory Identity Management

Follow Adaxes in social networks
Image Image Image Image

tkrn
Posts: 11
Joined: Thu Nov 18, 2010 9:01 am

Re: Passing AD credentials to the Web Interface?

Wed May 11, 2011 10:50 am

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

achebe
Posts: 2
Joined: Wed May 15, 2019 12:00 pm

Re: Passing AD credentials to the Web Interface?

Wed May 15, 2019 12:03 pm

Hello,

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

Thanks,
Chris

achebe
Posts: 2
Joined: Wed May 15, 2019 12:00 pm

Re: Passing AD credentials to the Web Interface?

Wed May 15, 2019 12:32 pm

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

Thanks!
-Chris

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests