Nick LaMarca
Nick LaMarca

Reputation: 8198

Getting User Credentials Windows Authenication

If a user has signed into their computer and are connected to an intranet, is there a way to grab the users crendtials and authentication them in asp.net? What specific code would do this?

Upvotes: 2

Views: 5214

Answers (2)

KP.
KP.

Reputation: 13720

Yes it's very possible. See "Configuration Windows Authentication" section in this article:

http://msdn.microsoft.com/en-us/library/ms998358.aspx

Essentially you allow IIS and ASP.NET to digest the windows user information.

Upvotes: 1

Shoban
Shoban

Reputation: 23016

You can use System.Web.HttpContext.Current.User.Identity

Upvotes: 1

Related Questions