Quantcast
Channel: Claims based access platform (CBA), code-named Geneva forum
Viewing all articles
Browse latest Browse all 2535

ADFS 2.0 -- Redirect to formSignIn.aspx

$
0
0

Hello,

I am now customizing the adfs sign in page, I want to create different login page base on rely party. 

I successfully identify the rely part and then want to redirect to different login page.

I wrote the following code in page_load:

Response.Redirect("https://" + HttpContext.Current.Request.Url.Host + "/adfs/ls/FormsSignIn2.aspx/"+Request.Url.Query);

But the page isn't show.

In Event viewer, it shows:

Failed to process the Web request because the request is not valid. Cannot get protocol message from HTTP query. The following errors occurred when trying to parse incoming HTTP request:

Microsoft.IdentityServer.Protocols.Saml.HttpSamlMessageException: MSIS7015: This request does not contain the expected protocol message or incorrect protocol parameters were found according to the HTTP SAML protocol bindings.
   at Microsoft.IdentityServer.Web.HttpSamlMessageFactory.CreateMessage(HttpContext httpContext)
   at Microsoft.IdentityServer.Web.FederationPassiveContext.EnsureCurrent(HttpContext context)

Does anyone know how to solve it? Thank you very much!


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>