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 6154227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:13:44+00:00 2026-05-23T20:13:44+00:00

I have an MVC3 application into which I’m integrating WIF. Before starting on this

  • 0

I have an MVC3 application into which I’m integrating WIF. Before starting on this path I had decorated some of my controllers to require authentication, something along these lines:

namespace MyProject.Web.Controllers
{
    [Authorize(Roles = "Admin,User")]
    public class TestController : Controller
    {

so as long as the controller wasn’t decorated, a user would not get prompted for credentials. I’ve gotten the app to the point where I get a page with a list of choices for Google, Yahoo, Facebook and Windows Live for authentication but the trouble is I get that page regardless of what controller I hit (even just asking for / makes it pop up).

how is this supposed to work? is there any writeup out there (haven’t found one yet) that discusses how WIF can protect some pages but not others?

TIA – e

  • 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-23T20:13:45+00:00Added an answer on May 23, 2026 at 8:13 pm

    It sounds like WIF has it’s own IHttpModule, which means it’s already executed by the time your controller is hit.

    It appears that this topic has been discussed before. I’d check out these resources:

    • Stack Overflow: ASP.NET MVC 2 and authentication using WIF (Windows Identity Foundation)
    • MSDN: Federated Identity with Multiple Partners (contains sample MVC integration)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MVC3 application with some XML files on the App_Data folder. To
I have a MVC3 application which follows PRG pattern, I am looking for a
here's my question: I have an MVC3 C# application and I need to update
I have been working on mvc3 application and trying to localize the same. I
In an MVC3 application I have a view rendering two Ajax partial views: a
I have a ASP.NET MVC3 application that handles time-consuming processes (copying a large file
i have created an mvc3 web application that uses forms based authentication. one part
In my MVC3 application, I have a queries class specific to each controller that
I am working on an MVC3 application using the Razor syntax and I have
I am using SignalR in my MVC3 application, and since I have implemented StructureMap

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.