My application authenticates users through STS. Authentication can go to the STS and validate the user PIN on the card. But how do I redirect it to the "home" page of my site after authentication?
Addendum:
FederatedPassiveSignIn
pendent component contained in: Microsoft.IdentityModel.Web.Controls
; Signed_in
method to try to capture the moment after the authentication to STS but it did not work; Load
, however, it runs every time the page is loaded (obvious). Follow Code:
<div style="margin-left: 360px; margin-top: 100px; margin-bottom: 100px;">
<wif:FederatedPassiveSignIn ID="FederatedPassiveSignIn1" runat="server"
Issuer="<%$AppSettings:CORP.STS.Certificado%>"
RequireHttps="False" Realm="<%$AppSettings:CORP.STS.UrlCliente%>"
UseFederationPropertiesFromConfiguration="false" RememberMeText="Lembre minha Senha."
SignInImageUrl="~/Images/ec_b.gif" TitleText="Autenticar Certificado Digital" OnSignedIn="FederatedPassiveSignIn1_SignedIn" >
<SignInButtonStyle Height="80px" />
</wif:FederatedPassiveSignIn>
<div id="errorMessage">
<asp:Label Text="text" ID="lblError" runat="server" Visible="false" ForeColor="Red" style="margin-left:-200px;" />
</div>
</div>
and the code behind part:
protected void FederatedPassiveSignIn1_SignedIn(object sender, EventArgs e)
{
Response.Redirect("MinhaPagina.aspx");
}