Occurs when the module is determining whether it should redirect the user to the configured issuer to authenticate.
Assembly: System.IdentityModel.Services (in System.IdentityModel.Services.dll)
You can set the AuthorizationFailedEventArgs::RedirectToIdentityProvider property to control whether the request is redirected to the identity provider. The framework initializes this property to false if the user has already been authenticated. In this case, setting the property to true may cause a circular loop with the STS.
The RedirectingToIdentityProvider event can be used to modify the URL or cancel the redirect.
To handle this event in an ASP.NET application, create a method named WSFederationAuthentication_AuthorizationFailed in the global.asax file.