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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:47:27+00:00 2026-05-26T20:47:27+00:00

The AD FS 2.0 sign-in pages are a small ASP.NET web application (using .NET

  • 0

The AD FS 2.0 sign-in pages are a small ASP.NET web application (using .NET 2.0), which can be customized to change the look-and-feel, and the functionality. (Such customization is explicitly documented by Microsoft: see Sign-In Pages Customization and its sub-pages.)

I have a scenario where there are multiple ‘home realms’ (= ‘Claims Provider Trusts’), and where AD FS 2.0 uses forms sign-in (as opposed to another ‘authentication handler’).

When the page HomeRealmDiscovery.aspx is hit, then that page should select a home realm in some way (e.g., by asking the user), and then call SelectHomeRealm(). This is usually done in some ASP.NET event handler for some submit button. At that point control is transferred to the FormsSignIn.aspx page.

Now on the FormsSignIn page I would like to use some data (not directly AD FS related) which was entered on the HomeRealmDiscovery page. However, I see no way of getting to that data.

MSDN page “How to: Determine How ASP.NET Web Pages Were Invoked” explains how to find out how control was transferred. In my case I find that in the FormsSignIn page IsPostBack is false, PreviousPage is null, and IsCallback is false. (Also IsCrossPagePostBack is false.) Therefore the MSDN page suggests that the FormsSignIn page was invoked using an ‘original request’. But that is not the case, since I observe (using e.g. Fiddler) that control is not transferred by redirecting the client browser in any way. So I would expect this to be a ‘server transfer’, so that I could use PreviousPage to get at the HomeRealmDiscovery page instance. (I tried to use a cookie, but that does not work since the browser is not involved in the transfer.)

Therefore my question is: How can I pass a value from the AD FS 2.0 HomeRealmDiscovery.aspx page to its FormsSignIn.aspx page?

  • 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-26T20:47:27+00:00Added an answer on May 26, 2026 at 8:47 pm

    AD FS does some manipulation with the HTTP request so the best option I’ve found is using the HttpContext Items collection to share data.

    So from the HomeRealmDiscovery page, set the values with:

    var context = HttpContext.Current;
    
    string someValue = "someValue";
    ComplexObject someOtherValue = new ComplexObject();
    
    context.Items.Add("key", someValue);
    context.Items.Add("key2", someOtherValue);
    

    And then in the FormsLoginPage, get the values with:

    var context = HttpContext.Current;
    
    var value = context.Items["key"] as string;
    var otherValue = context.Items["key2"] as ComplexObject;
    

    Hope this helps.

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

Sidebar

Related Questions

How can I self-sign an iPhone application using Xcode? I have done the following:
Can you sign a C++ CLI application that is partially managed and partially unmanaged?
To enable single sign-on for a web application and a web application in a
I want to access some pages of web site https://myoffice.bt.com which requires user authentication
I'm writing some web UI pages that can be used to create Linux user
I am building a small online app (PHP/MySQL) where users can sign-up to become
With little sign of the Sphinx. I have 5 pages. At one should look
I'm developing an application where it requires users to sign in using twitter and
I am working on a single sign-on login page using Shibboleth that will be
I want to let a user sign in before seeing pages. Is there any

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.