Created
June 21, 2012 08:22
-
-
Save sandrinodimattia/2964563 to your computer and use it in GitHub Desktop.
Redirect after e-Contract logon
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