30
votes
5answers
7k views
ASP.NET MVC3 and Windows Auth on IIS keeps redirecting to /Account/Login
I'm running MVC3 and a windows auth web application. When I deploy to IIS6 it runs great until I hit a page that requires authentication. It then is auto-redirecting to /Account/Login when I have no ...
19
votes
2answers
13k views
ASP.NET MVC - Authenticate users against Active Directory, but require username and password to be inputted
I'm developing a MVC3 application that will require a user to be authenticated against an AD. I know that there is the option in MVC3 to create an Intranet Application that automatically authenticates ...
15
votes
6answers
6k views
asp.net: unable to get windows authentication to work through local IIS
So I've created a new ASP.NET MVC project using the intranet template. web.config contains the appropriate values (e.g. <authentication mode="windows"/>).
If I fire up the web app using the VS ...
9
votes
1answer
2k views
Windows authentication mode in ASP.NET uses the Active Directory group name (pre-Windows 2000)?
Here is the background. I had an .NET MVC v1.0 project that I was trying to secure it by using Windows authentication mode. So I set the web.config to:
<authentication mode="Windows" />
And ...
8
votes
1answer
4k views
ASP.NET MVC and Windows Authentication with custom roles
I am trying to implement windows authentication in my ASP.NET MVC2 application.
I've followed all the steps suggested by the official documentation:
<authentication mode="Windows" />
...
7
votes
4answers
3k views
ASP.NET Web API Self-Host with Windows Authentication
I am trying to use the ASP.NET Web API Self-Host option with Windows authentication so I can determine the logged on user and ultimately accept or reject the user based on their identity. Here is my ...
5
votes
3answers
3k views
Roles available with Windows Authentication
I'm trying to add Roles authentication to an Action in a Controller in an ASP.NET MVC application. The code looks something like this:
[Authorize(Roles = "SomeRoleName")]
public ActionResult Index()
...
5
votes
1answer
3k views
ASP.NET MVC Urls and IIS Integrated Windows Authentication
I have an ASP.NET MVC app which is completely behind Forms Authentication. However there is one set of routes (/report/%) I need to force integrated windows authentication on, as those pages need to ...
4
votes
3answers
11k views
Windows Authentication with ASP.NET MVC
I've built a custom login system for my asp.net mvc 1.0 web application as I store large amounts of user data for each user (I decided against trying to add custom tables for the windows ...
4
votes
2answers
2k views
Mixing Windows and Forms Authentication in ASP.NET MVC
I'm currently trying to set up a website that uses both windows authentication and forms authentication. I am using ASP.NET MVC and both IIS6 and 7 need to be supported. How would I go about letting ...
3
votes
2answers
2k views
Windows authentication & SQL Membership services
I have an ASP.Net MVC intranet site which uses Windows Authentication to know who is logged in (no anon browsing allowed). The first time the users visit, I collect some very basic information from ...
3
votes
3answers
1k views
Need Users to Re-authenticate with NTLM
I'm NTLM (authenication="windows" in the web.config) with an asp.net mvc 2.0 site.
Right now once a user logs in it keeps them logged in for weeks at a time.
The use of the application is being ...
3
votes
1answer
673 views
Windows authentication to SQL with AD username and password in connection string
Hi I'm writing an ASP.Net MVC intranet application which is accessed via handhelds and a range of browsers. My users all have AD accounts and have different permission to our SQL database views/procs ...
3
votes
1answer
900 views
Windows Authentication & MVC: proper way to exclude individual file/route
I have an MVC 3 site which is protected via Windows Authentication. However, there is a physical file at the root of the site, along with a controller action method (via a custom route), which need to ...
3
votes
1answer
3k views
Configuring ASP.NET MVC app's IIS 7.5 Application Pool identity as login on SQL Server 2008 R2
I am trying to use IIS 7.5 Application Pool identity as login on SQL Server 2008 R2 so that my ASP.NET web app can connect to the database...
Using this approach worked fine on my local dev machine ...