WSFederationAuthenticationModule.OnAuthorizationFailed Method (AuthorizationFailedEventArgs)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Raises the AuthorizationFailed event.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

protected virtual void OnAuthorizationFailed(
	AuthorizationFailedEventArgs e


Type: System.IdentityModel.Services.AuthorizationFailedEventArgs

The data for the event.

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.

.NET Framework
Available since 4.5
Return to top