Can I use the WCF REST service using Windows Authentication without .NET libraries?

I have a WCF client hosted in IIS7 and a WCF service hosted in IIS7. The client is strictly http / javascript, and I would like to keep it that way.

When I go to the client’s web page, I’ll be asked to enter my Windows Authentication credentials because the page is secure (and served using https). Once I am authenticated, my AJAX calls to the service (from the client) are not processed, because I am never given the opportunity to authenticate to the service itself.

What is the best way to implement security if I want to protect access to the service using Active Directory credentials but without using .NET libraries?

The specific response returned by the service is "401 (unauthorized)." Please note that the service is also served using https.

+7
source share
1 answer

Edit:

Update

To do this, there is a security mode described here:

http://rickgaribay.net/archive/2007/04/04/recipe-wcf-basichttpbinding-with-windows-authentication.aspx

Below for Android

I think this is possible. Although instead of writing a custom NTML authentication implementation, you need to use a third-party java library.

I had success with http://jcifs.samba.org/ on Android. Unfortunately, I no longer have the source code since we switched to a different authentication method.

I found this project at the following link: http://danhounshell.com/blog/android-using-ntlm-authentication-with-httpclient/

There is also another NTML project for AD integration that can help (I have no experience):

http://www.ioplex.com/jespa.html

Hth

+1
source

All Articles