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

  • Home
  • SEARCH
  • 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 problem with my mvc3 application, i need to create some Validation
I have a MVC3 application in which i want to set a timespan to
I have MVC3 application that runs under mono on linux. I have this route:
I have a MVC3 application which follows PRG pattern, I am looking for a
I have an MVC3 Internet Application. Basically it has a registration form, which has
We have an MVC3 controller in which there is some 'common' work that we
I have created mvc3 application. I have one .edmx already created which is based
I have created a mvc3 application. Currently saving submit form value into Session as
I have an ASP.NET MVC3 application published to a url like this: http://servername.com/Applications/ApplicationName/ In

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.