Skip to content

Instantly share code, notes, and snippets.

@sandrinodimattia
Created June 21, 2012 08:22
Show Gist options
  • Save sandrinodimattia/2964563 to your computer and use it in GitHub Desktop.
Save sandrinodimattia/2964563 to your computer and use it in GitHub Desktop.
Redirect after e-Contract logon
protected void Application_Start()
{
...
FederatedAuthentication.ServiceConfigurationCreated += OnServiceConfigurationCreated;
}
private void OnServiceConfigurationCreated(object sender, ServiceConfigurationCreatedEventArgs e)
{
FederatedAuthentication.WSFederationAuthenticationModule.SignedIn += new EventHandler(WSFederationAuthenticationModule_SignedIn);
}
private void WSFederationAuthenticationModule_SignedIn(object sender, EventArgs e)
{
HttpContext.Current.Response.Redirect("/Account/Display");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment