Questions tagged [windows-authentication]

Integrated Windows Authentication is a term associated with Microsoft products that refers to the SPNEGO, Kerberos, and NTLM authentication protocols. Use tag with Windows authentication generally; though it might be best to use one of the more protocol-specific tags (such as Kerberos or NTLM) if the protocol being used is known.

Integrated Windows Authentication () is a term associated with Microsoft products that refers to the , , and authentication protocols with respect to functionality introduced with Microsoft Windows 2000 and included with later Windows NT-based operating systems. The term is used more commonly for the automatically authenticated connections between Microsoft Internet Information Services (), , and other aware applications.

IWA is also known by several names like HTTP Negotiate authentication, NT Authentication, NTLM Authentication, Domain authentication, Windows Integrated Authentication, Windows NT Challenge/Response authentication, or simply Windows Authentication.

Source: http://en.wikipedia.org/wiki/Integrated_Windows_Authentication

3028 questions
51
votes
14 answers

401 response for CORS request in IIS with Windows Auth enabled

I'm trying to enable CORS support in my WebAPI project, and if I enable Anonymous Authentication then everything works fine, but with Windows Auth + disabled anonymous authentication, the OPTIONS request sent always returns a 401 unauthorized…
dariusriggins
  • 1,434
  • 1
  • 15
  • 30
50
votes
7 answers

Mixing Forms authentication with Windows authentication

I have an (ASP.NET 3.5) intranet application which has been designed to use forms authentication (along with the default aspnet membership system). I also store additional information about users in another table which shares its primary key with…
49
votes
4 answers

Making a web request to a web page which requires windows authentication

I am trying to make a request to a web page using WebRequest class in .net. The url that I am trying to read requires Windows Authentication due to which I get an unauthorised exception. How can I pass a windows credentials to this request so that…
Hemanshu Bhojak
  • 16,972
  • 16
  • 49
  • 64
46
votes
6 answers

ASP.NET Identity + Windows Authentication (Mix mode - Forms + Windows)

I have tried my best to search the web before asking this question. I've seen similar questions on stackoverflow, however, none has been answered satisfactorily for a long time now. This is one more attempt to get this recurring question…
44
votes
2 answers

ASP.NET MVC - Authenticate users against Active Directory, but require username and password to be inputted

I'm developing a MVC3 application that will require a user to be authenticated against an AD. I know that there is the option in MVC3 to create an Intranet Application that automatically authenticates a user against an AD, but it uses Windows…
41
votes
4 answers

Unable to authenticate to ASP.NET Web Api service with HttpClient

I have an ASP.NET Web API service that runs on a web server with Windows Authentication enabled. I have a client site built on MVC4 that runs in a different site on the same web server that uses the HttpClient to pull data from the service. This…
39
votes
3 answers

Run Code as a different user

Is there a way to tell my code to run as a different user? I am calling NetUserSetInfo via a PInvoke and I need to call it as a different user. Is there a way to do that?
Vaccano
  • 78,325
  • 149
  • 468
  • 850
38
votes
4 answers

How to get the current user's Active Directory details in C#

I am working on an C# and ASP.Net application, that uses Windows Authentication. i.e. in Web.config: I want to get details for the current user (full name, email address, etc) from…
Sophia
  • 5,643
  • 9
  • 38
  • 43
38
votes
2 answers

How can I pass windows authentication to webservice using jQuery?

I'm using jQuery to call a .Net web service like this: var service_url = "https://example.com/myservice.asmx" $.ajax({ type: "GET", url: service_url, dataType: "xml", data: "ParamId=" + FormId.value, processData: false, …
brendan
  • 29,308
  • 20
  • 68
  • 109
37
votes
1 answer

using windows authentication with active directory groups as roles

I've read several questions on this topic, such as here, here, here and here; but none have provided a working solution in my case. What I want to do: Implement Windows authentication for a web app that is only used by our own employees. This way…
Forty-Two
  • 7,535
  • 2
  • 37
  • 54
36
votes
8 answers

How to get user name using Windows authentication in asp.net?

I want to get user name using Windows authentication Actually, I implemented "Sign in as different user", when click this button Windows security will appear there we can give credentials. In that time if I give some other credential it is taking…
33
votes
3 answers

Get the username in Forms authentication

I'm using Forms authentication. In Windows Authentication for get the user name of the PC i use: User.Identity.Name I need this information also in Forms authentication but User.Identity.Name doesn't work. How can I get the User.Identity.Name…
Luca Romagnoli
  • 12,145
  • 30
  • 95
  • 157
33
votes
4 answers

Why doesn't cURL work with Windows Authentication on IIS7?

I am trying to access a service that is behind Windows Authentication. I thought I could pass the credentials the way HTTP Basic Authentication credentials are passed, but it's not working. When I do the following, I get a 401 error, and I am…
woz
  • 10,888
  • 3
  • 34
  • 64
30
votes
6 answers

How to use Windows login for single-sign-on and for Active Directory entries for Desktop Java application?

I'd like to have my desktop Java application to have single sign on related to Active Directory users. In two steps, I'd like to: Be sure that the particular user has logged in to Windows with some user entry. Check out some setup information for…
Touko
  • 11,359
  • 16
  • 75
  • 105
30
votes
5 answers

Client-server authentication - using SSPI?

I'm working on a client-server application and I want the client to authenticate itself to the server using the user's logon credentials, but I don't want the user to have to type in their user name and password. I certainly don't want to be…
antiduh
  • 11,853
  • 4
  • 43
  • 66