Example #1
0
 /// <summary>
 /// Event handler for the enduser authorization failed event. This method should take any corrective measure needed.
 /// </summary>
 /// <param name="sender">Sender of the event.</param>
 /// <param name="authorizationFailedEventArgs">Event arguments.</param>
 void OAuthClientSettings_EndUserAuthorizationFailed(object sender, EndUserAuthorizationFailedEventArgs authorizationFailedEventArgs)
 {
     // cancelling this event will cause the user to be redirected to the initial page.
     authorizationFailedEventArgs.Cancel = true;
 }
Example #2
0
 /// <summary>
 /// Event handler for the enduser authorization failed event. This method should take any corrective measure needed.
 /// </summary>
 /// <param name="sender">Sender of the event.</param>
 /// <param name="authorizationFailedEventArgs">Event arguments.</param>
 void OAuthClientSettings_EndUserAuthorizationFailed(object sender, EndUserAuthorizationFailedEventArgs authorizationFailedEventArgs)
 {
     // cancelling this event will cause the user to be redirected to the initial page.
     authorizationFailedEventArgs.Cancel = true;
 }