Skip to content

Instantly share code, notes, and snippets.

@sandrinodimattia
Created July 20, 2012 22:04
Show Gist options
  • Save sandrinodimattia/3153579 to your computer and use it in GitHub Desktop.
Save sandrinodimattia/3153579 to your computer and use it in GitHub Desktop.
Redirect after SignedIn
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