none
How to pass values from AD FS 2.0 FormsSignIn.aspx to IdpInitiatedSignOn.aspx? RRS feed

  • Question

  • I am trying to pass the username from the FormsSignIn.aspx page to the IdpInitiatedSignOn.aspx page in ADFS 2.0. I am unable to access the Session in the FormsSignIn.aspx.cs page and have had no success passing the value with any other method such as was mentioned in the link below.

    I am thinking I cannot access the Session because it is too early in the page Lifecycle so I've tried multiple different ways to force the AcquireRequestState event but have had no luck.

    Could someone please tell me how to access the Session in the FormsSignIn.aspx.cs code or let me know of another option for passing the username from this page to the IdpInitiatedSignOn.aspx page?

    http://stackoverflow.com/questions/8081532/how-to-pass-values-from-ad-fs-2-0-homerealmdiscovery-aspx-to-formssignin-aspx?answertab=votes#tab-top

    Tuesday, November 25, 2014 3:40 PM

Answers

  • Hello CamCode,

    >>Could someone please tell me how to access the Session in the FormsSignIn.aspx.cs code or let me…

    Since they are aspx web pages, you could check this link which shows how to pass values between ASP.NET web pages:

    http://msdn.microsoft.com/en-us/library/6c3yckfw(v=vs.100).aspx

    And usually, we pass the values after the Page_Load() being called.

    By the way, since this issue is related with ADFS, I suggest you could post it to the ADFS forum:

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva

    The current forum you post to is used to discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection.Discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, November 26, 2014 6:23 AM
    Moderator