Auto Signin with Active Directory Account in c# ASP.Net Website
You would use the Windows authentication provider to use Windows authentication (which is the AD authentication).
http://msdn.microsoft.com/en-us/library/907hb5w9.aspx
However, what you're talking about is mixed-mode authentication... That's a bit more tricky. But it's covered here: http://msdn.microsoft.com/en-us/library/ms972958.aspx and here http://www.15seconds.com/issue/050203.htm
TTCG
Updated on June 25, 2022Comments
-
TTCG almost 2 years
We have a website which can be used as intranet for Staffs and internet for outside people. All our staffs accounts are in Active Directory. So, when the internal staffs browse the URL (For eg. http://app.abc.com), they should be automatically signed in by using their AD accounts.
However, for external users, they have to use their username and password. I could do this part easily just by looking up the database and make authentication.
I would like to know how I could auto sign in the AD users into the website.
-
Fandango68 over 5 yearsCould you please explain your code. Simply dumping code into SO is just crude. What is _path for example?
-
adt over 5 years@Fandango68 Sure thing, also docs.microsoft.com/en-us/dotnet/api/…