4

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?

1 Answer 1

2

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.

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

Comments

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.