Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7583425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:40:29+00:00 2026-05-30T18:40:29+00:00

I have developed a web app in ASP.NET MVC which we are using internally.

  • 0

I have developed a web app in ASP.NET MVC which we are using internally. Now we want to make it available through our server on the internet — to make life easier when we’re doing jobs on site.

Ideally I’d like to just stick Windows authentication infront of it, so that anyone with a domain account can log in.

The problem is that I’m already using forms authentication in the app.

We don’t have any password restrictions for the app, you simply select the user you wish to log in as and then submit the form. On the server side it just does this –

    FormsAuthentication.SetAuthCookie(viewModel.Username, true);

This makes the user’s name available throughout all controllers and views using the User object (user.identity.name).

However… when I enable Windows authentication in IIS, the web app starts thinking that user.identity.name is “ourdomain\domainuser”.

What I’d like is to use forms authentication in conjunction with windows authentication, but not have them integrate in any way.

Is there a simple way to achieve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:40:30+00:00Added an answer on May 30, 2026 at 6:40 pm

    The ASP.NET team doesn’t officially support using mixed-mode authentication in an application. If you search the web, you’ll find blog posts on how to do this, but please note that they’re discouraged by the ASP.NET team. The reason this is discouraged is that it is very difficult to reason about from a correctness point of view, and there are trivial attacks against such a setup that can allow malicious clients to masquerade as an authenticated user.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed many web applications in ASP.NET in which I have make use
I have developed MVC web app. Now, I want to use custom form authentication
Im trying to develop my first ASP.NET MVC web app and have run into
We have a wonderful ASP.NET MVC 2 web application using MS SQL 2008 and
I have a web app written in ASP.NET MVC 3.0. There are some largish
I have a small ASP.net web app for sales, when the Make New Sale
I'm debugging my ASP.NET MVC 3 web app using Google Chrome Developer Tools, and
I have an old ASP.NET web application on a server, which was developed in
I have developed a web app using a webservice. Everything works fine in the
I developed an ASP.Net MVC v1 web application and it ran fine on our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.