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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:51:45+00:00 2026-05-23T23:51:45+00:00

I have an MVC3 app for which I want to implement claims support. My

  • 0

I have an MVC3 app for which I want to implement claims support. My goal is as follows:

  1. provide a SignIn link, which when clicked displays a popup window with username/password and Facebook/WindowsLive/Google etc. links

  2. automatically redirect to my SignIn page when a protected controller is accessed e.g. /Order/Delete

I’ve set up the application and providers in AppFabricLabs.com and included the STS in my project. I’ve also created an implementation of IAuthorizationFilter so I can mark my controllers as [WifAuth] and successfully get the OnAuthorization method called. I’ve implemented the use-case where the visitor has not been authenticated like this:

    private static void AuthenticateUser(AuthorizationContext context)
    {
        var fam = FederatedAuthentication.WSFederationAuthenticationModule;
        var signIn = new SignInRequestMessage(new Uri(fam.Issuer), fam.Realm);
        context.Result = new RedirectResult(signIn.WriteQueryString());
    }

and successfully get AppFabricLabs page with my Identity Provider choices (haven’t figured out how to customise that page). When I log in my returnUrl gets called so I land in a controller method /Home/FederationResult, however the form posted to me contains only wa and wresult fields but I need wctx to know where to send the user… I haven’t been able to figure out why.

the wresult is an XML document that contains (amongst a bzillion other things) the name and e-mail address of the user logging in but sadly does not contain the url to which the user was headed.

have I failed to configure something or am I just off base? thoughts anyone?

  • 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-23T23:51:46+00:00Added an answer on May 23, 2026 at 11:51 pm

    Just specify a Context for the SignInRequestMessage:

    signIn.Context = HttpContext.Current.Request.RawUrl;
    

    The wctx parameter is included in every request/response and also part of the form posted finally to your site.

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

Sidebar

Related Questions

I'm developing a ASP.Net MVC3 app which will have few hundred videos. I want
I have an MVC3 web app to which I want to start using whole
I have an MVC3/EF4.1 app that I'm building which now works fine on my
I have a requirement to implement user privilege elevation in an MVC3 web app,
I have implement testing app. which uses fluent nhibernate mapping to db object inside
I have an MVC3 web app which is effectively 'bolted on' to a classic
I have a .net app which has an MVC3 front end and 2 windows
I have an MVC3 app with a WCF service reference. Of course when im
I have an ASP.NET MVC3 app and when the user clicks on my anchor
This is an MVC3 app. I have the following javascript call to my action:

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.