I have website in mvc c#, running on a server. I want to bypass the login page and authenticate a user if the user is present in active directory. For my website, i have forms authentication and anonymous authentication enabled.
The problem is, i want to find out the name of user who is visiting the website. The user can be present on internet. With this name, i will do a lookup in Active directory and do the validation.
I am unable to find the user name. Any help would be appreciated.
Thanks.