Export (0) Print
Expand All

WSFederationAuthenticationModule.OnAuthorizationFailed Method

.NET Framework 4.6 and 4.5

Raises the AuthorizationFailed event.

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

protected virtual void OnAuthorizationFailed(
	AuthorizationFailedEventArgs e
)

Parameters

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

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft