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

Is there such a thing as a "fully qualified" username within the context of Windows Authentication?

My web-app is hosted on mydomain, with the following URI associated with the domain: blah.net. I can login to using either of the following usernames: mydomain\ben ben@blah.net What are the names of each of these types of login (and are there any…
Ben Aston
  • 53,718
  • 65
  • 205
  • 331
10
votes
2 answers

User.IsInRole("fake group") results in "The trust relationship between the primary domain and the trusted domain failed"

I have an MVC 3 app, using Windows Authentication with Claims using WIF 4.5. Access to the application is controlled (currently) via membership in an AD group: In addition to…
JoeBrockhaus
  • 2,745
  • 2
  • 40
  • 64
10
votes
2 answers

Web API 2.1 Windows Authentication CORS Firefox

Here's the scenario: I created a web api project and an mvc project, like so: http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api I installed CORS support via nuget and added the EnableCorsAttribute I ran the…
ahanusa
  • 969
  • 1
  • 9
  • 11
10
votes
1 answer

IIS Windows Authentication before Anonymous

I have a website that I would like to allow both Forms and Windows Auth for. My problem is that it seems that when you setup IIS to allow both anonymous (Required for forms auth) and Windows auth that the browser won't send the user's network…
Phill
  • 101
  • 1
  • 3
10
votes
1 answer

Windows authentication mode in ASP.NET uses the Active Directory group name (pre-Windows 2000)?

Here is the background. I had an .NET MVC v1.0 project that I was trying to secure it by using Windows authentication mode. So I set the web.config to: And then went into my controller and did the…
10
votes
3 answers

IIS express applicationhost.config security is reset every time a solutions is opened in VS2012

I have an MVC4 application been developed in VS2012 that uses forms authentication. [authentication mode="Forms"] [forms loginUrl="~/Account/Login" timeout="2880" /] [/authentication] It's using the default IIS 8.0 Express. Every time I open and…
Andre Vianna
  • 1,713
  • 2
  • 15
  • 29
10
votes
2 answers

Mono to SQL Server with Windows Auth

Quick... How to use Windows Authentication to SQL Server with the Mono SQL Client running on Windows without a username+ password in the connection string? More... We have to use Mono to support multiple platforms for some components of our…
gbn
  • 422,506
  • 82
  • 585
  • 676
9
votes
5 answers

ASP.NET MVC 3 Intranet site on IIS7.5 w Windows Authentication gives 401.3 and File authorization failed for the request when trying to log in

I have made an ASP.NET MVC 3 Intranet site with Windows Authentication enabled: in the Visual Studio project file properties in the web.config, i.e. on the site properties in the IIS 7.5. server Anonymous access is…
9
votes
2 answers

Windows authentication in asp.net mvc 3 hosted on Windows Azure?

I am migrating one ASP.NET MVC 3 intranet Website to the Windows Azure and DB to SQL Azure. On Premises my site uses Windows Authentication to authenticate and authorize the user(By Placing AUTHORIZE attribute on controllers). It would be very kind…
9
votes
5 answers

Testing intranet site that uses Windows authentication

I'm trying to develop an intranet app/website that uses Windows authentication. I'd like to test it with multiple users, for roles etc. At the moment I'm only using my own domain account. Is there a way I could simulate different users for the site?
raklos
  • 28,027
  • 60
  • 183
  • 301
9
votes
2 answers

Using Active Directory and Windows Authentication to give custom roles in Blazor Server

I'm trying to give custom roles in my Blazor Server application. User who are authenticated with Windows Authentication should be given one of these custom roles depending on their Active Directory Groups, one group represents one role. If the user…
9
votes
1 answer

ASP.Net Core 3.0 Windows Authentication with Custom Role Based Authorization

I'm looking to use Windows Authentication in an ASP.NET 3.0 MVC app with roles I pull from a SQL database for API security. I will decorate the API controller methods with something like [Authorize(Roles = "Admin")] A lot of what I have here, I've…
9
votes
4 answers

Integrated Windows authentication in Microsoft Edge

I am trying to implement Integrated Windows authentication on Edge, but it always prompts me for credentials, whereas Integrated Windows authentication is working for IE, Chrome and Firefox. I have tried adding the site to local intranet sites in…
9
votes
3 answers

How can I resolve 401 unauthorized in angular?

I create .Net Core API and I configure the windows authentication. In my angular application I have to put in each request this option withCredentials : true. I do a put request but it return me that : 401 (Unauthorized) I also try on post…
user10863293
  • 770
  • 4
  • 11
  • 32
9
votes
1 answer

How to provide ntlm authentication while calling any url?

I have a hosted url which authenticates using ntlm (windows Integrated authentication). I am on windows and using java 1.8 URL url = new URL("someUrl"); HttpURLConnection con = (HttpURLConnection) url.openConnection(); //…
Abhijeet Patil
  • 304
  • 2
  • 7