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
23
votes
3 answers

Using fiddler with Windows Authentication

I am testing some proxy settings for our application but I need to test a proxy that requires Windows Authentication (or network credentials). For testing, I assigned the credential of the proxy to the network credentials System.Net.WebProxy proxy =…
Pierre-Alain Vigeant
  • 22,635
  • 8
  • 65
  • 101
23
votes
3 answers

Windows authentication doesn't work when I run project from Visual Studio

Windows authentication works good when I host my ASP.NET MVC project on IIS. But if I run it from Visual Studio - it doesn't. Here is my Web.config: Am I…
Andrei
  • 42,814
  • 35
  • 154
  • 218
23
votes
2 answers

Impersonate Domain User with Integrated Pipeline

In an local Intranet environment, are we doomed to use "Classic" pipeline mode in our App Pool if we want to use Impersonate our Windows domain users, or is there a new way to declaratively "run as" them (so-to-speak)? My goal is to use Windows…
22
votes
4 answers

windows authentication vs forms authentication

I am trying to understand concepts of windows authentication, forms authentication and their differences. I am confused. Can someone help me in clarifying this. Thanks.
22
votes
2 answers

How can I configure PostgreSQL to use Windows Authentication?

I am trying to setup PostgreSQL and allow only certain Windows users to access the data from the database. Setting up Windows Authentication is Quite easy with MS SQL, but I can't figure out how to set it up in PostgreSQL. I have gone through the…
Devdatta Tengshe
  • 4,015
  • 10
  • 46
  • 59
22
votes
3 answers

Use Anonymous authentication in MVC4 on single controller when the whole application uses Windows Authenticaion

I have an MVC4 Web application which uses Windows Authentication, that is in web.config I have And that works fine and everything is ok. However now I need a controller (an Web API controller in fact) that should…
Plamen Ignatov
  • 612
  • 1
  • 7
  • 17
21
votes
3 answers

IIS Binding with windows authentication

I have a local website (http://localhost/testsite) with Windows Authentication, that works well. Now I changed the binding of the site to an URL (http://testsite.blablabla.biz) with Windows Authentication which leads to an HTTP 401.1 - Unauthorized…
Jordy
  • 978
  • 2
  • 10
  • 20
21
votes
8 answers

Most Strange IIS Windows Authentication behavior

I have an ASP.NET website running on Windows Server R2 in a corporate network, using Windows Authentication. The app pool of the website is using a domain account and in Integrated pipeline mode. The authentication is set Windows Authentication,…
user378895
  • 281
  • 1
  • 2
  • 7
21
votes
2 answers

MVC - Mixed Auth - OWIN + Windows Auth

I need to have both windows authentication and owin (forms) authentication but i can't get it to work. Probably the best option is to have two sites that have different authentication methods. I found a project that does what i want: MVC5-MixedAuth.…
Leandro Soares
  • 2,902
  • 2
  • 27
  • 39
21
votes
8 answers

"Cannot create an instance of OLE DB provider" error as Windows Authentication user

I am trying to run openrowset from MS SQL Server on an Oracle server. When i execute the following command: select * from OPENROWSET('OraOLEDB.Oracle','srv';'user';'pass', 'select * from table') the following error occurs Msg 7302, Level 16, State…
th1rdey3
  • 4,176
  • 7
  • 30
  • 66
21
votes
5 answers

NancyFx and Windows Authentication

I want to use NancyFx for an intranet web app. All the documentation and forums only mention Forms and Basic authentication. Anyone successfully use Nancy with Windows Authentication? There's also something called Nancy.Authentication.Stateless but…
PPC-Coder
  • 3,522
  • 2
  • 21
  • 30
20
votes
1 answer

ASP.NET Core Identity with Windows Authentication

I'm using .NET Core 3.0 Preview6. We have an Intranet application with enabled Windows authentication which means that only valid AD users are allowed to use the application. However, we like to run our own authentication backend with ASP.NET…
Sven
  • 2,345
  • 2
  • 21
  • 43
20
votes
3 answers

How do you find the users name/Identity in C#

I need to programatically find the users name using C#. Specifically, I want to get the system/network user attached to the current process. I'm writing a web application that uses windows integrated security.
minty
  • 22,235
  • 40
  • 89
  • 106
20
votes
5 answers

Windows Authentication not working in IIS Express, debugging with Visual studio 2013, Windows 8

I just upgraded my application from Visual studio 2012 to Visual studio 2013. My windows authentication is not working any more. It is giving me below error. HTTP Error 401.2 - Unauthorized You are not authorized to view this page due to…
Hiren
  • 1,381
  • 5
  • 24
  • 41
20
votes
4 answers

HttpContext.Current.User is null even though Windows Authentication is on

In IIS7 under Windows Server 2008, I have a virtual directory with anonymous access off and Windows authentication on. In my web.config, I have:
Patrick Szalapski
  • 8,738
  • 11
  • 67
  • 129