共用方式為


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

適用於