WSFederationAuthenticationModule.OnAuthorizationFailed 方法

定义

引发 AuthorizationFailed 事件。

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)

参数

e
AuthorizationFailedEventArgs

事件的数据。

注解

授权失败时, OnEndRequest 从事件处理程序委托调用。

AuthorizationFailedEventArgs.RedirectToIdentityProvider在引发 事件之前初始化 属性,AuthorizationFailed以防止如果用户已经过身份验证,则防止循环重定向。 如果用户已经过身份验证,则会将 属性初始化 false 为 以防止重定向;否则,它将初始化为 true

适用于