ערוך

שתף באמצעות


WSFederationAuthenticationModule.OnAuthorizationFailed Method

Definition

Raises the AuthorizationFailed event.

protected:
 virtual void OnAuthorizationFailed(System::IdentityModel::Services::AuthorizationFailedEventArgs ^ e);
protected virtual void OnAuthorizationFailed (System.IdentityModel.Services.AuthorizationFailedEventArgs e);
abstract member OnAuthorizationFailed : System.IdentityModel.Services.AuthorizationFailedEventArgs -> unit
override this.OnAuthorizationFailed : System.IdentityModel.Services.AuthorizationFailedEventArgs -> unit
Protected Overridable Sub OnAuthorizationFailed (e As AuthorizationFailedEventArgs)

Parameters

e
AuthorizationFailedEventArgs

The data for the event.

Remarks

Called from the OnEndRequest event-handler delegate when authorization has failed.

Initializes the AuthorizationFailedEventArgs.RedirectToIdentityProvider property before raising the AuthorizationFailed event to prevent circular redirects if the user has already been authenticated. If the user is already authenticated, the property is initialized to false to prevent redirects; otherwise, it is initialized to true.

Applies to