Created
July 20, 2012 22:04
-
-
Save sandrinodimattia/3153579 to your computer and use it in GitHub Desktop.
Redirect after SignedIn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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