2

I have a web application where forms authentication is used. The user names are the same that the ones used by the users in their computers, so they want the web app to be able to detect that user name so the app can log it the user automatically.

How can it be done? I mean, if I set the authentication mode to "Form" do I still get those credentials from IIS?

I know this can be done in several better ways than this, but I am interested in this particular way. As it is a small web app in an intranet with a few users doesn't worth it a big architectural change. If it's possible, happy days, otherwise it will have to wait.

Cheers.

2 Answers 2

2

That cannot be done with Forms Authentication. Without prompting the client for credentials, there is no way to retrieve that information from the client's machine.

Sign up to request clarification or add additional context in comments.

Comments

0

Windows auth cannot coexists with Forms auth, but it can coexists with Anonymous auth.

More info here: Windows authentication is not challenging browsers out of the domain

3 Comments

this is not exact. You can mix authentications using the technique described here : [mvolo.com/… 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication)
I think it is. In that article, it is indeed disabling FormsAuthentication and adding his own FormsAuthentication module.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.