I am working on a website for my company that is both available on our internal network and on internet. And I am asked something that does not seem possible to me but I wanted to ask the question before actually saying that !
We have two types of users in our company, those who are actually registered in the Active Directory (and so forth have a Windows login account) and those who are not.
On our internal network we use the identity given by HTTPContext.Current.User.Identity.Name
With this authentication I am able to check in the Active Directory if the user really exist and authorize him to access the website. This is for the access via our internal network. That is fine because everyone accessing the website via internal network need to have an AD account.
Now, the main issue is for the internet access ! For the moment, I have a popup that shows up and asks for a login / password (pretty basic, the same for everyone who is not on the AD, don't ask me why, this is a requirement.....). If the user give correct login password, he can access to the website even though we don't know his real identity. But what I am asked is to have a link on this pop up saying "Login using your windows credentials". Then I need retrieve the credentials and check in the AD if they are correct.
After looking on Internet I found the Windows Identity Fundation that is supposed to manage several ways of Identification, but I don't feel like this is what I need, It seems to be a bit Overkill for what I want to do !
Anyone ever tryed this ?? I know (and I told them) this is a VERY weird requirements but I said I will have a look anyway...
[EDIT 2013/09/13] I tryed something but this is not working maybe you can explain me why. I set my website in IIS to allow anonymous connection. I have added a page with a login form (for the basic authentication and you can access without being authenticated) and a link towards another page that is configured in the web.config to deny the anonymous connection. I was hopping it would have poped up the Internet Explorer window for Authentication but instead I just got a 401 - Unauthorized access. Is that a normal behavior or a configuration issue ?