iasksillyquestions
iasksillyquestions

Reputation: 5689

Asp.net and windows authentication

My application needs to be designed so that an administrator can, via a web interface select if their users login via windows authentication or forms authentication.

This means I cant specify the authentication mode in the web.config i.e.:

<system.web>
    <authentication mode="Windows"/>
</system.web>

How do I approach this?

Upvotes: 4

Views: 1097

Answers (1)

Doug
Doug

Reputation: 494

Use Forms authentication mode, whereby the login form can determine the user and the preferred authentication method for that user. If the user can be windows authenticated, you don't need to present the login form, just set the user as authenticated and redirect accordingly.

Upvotes: 2

Related Questions