OAuthEvents 類別

定義

預設實作。

public ref class OAuthEvents : Microsoft::AspNetCore::Authentication::RemoteAuthenticationEvents, Microsoft::AspNetCore::Authentication::OAuth::IOAuthEvents
public ref class OAuthEvents : Microsoft::AspNetCore::Authentication::RemoteAuthenticationEvents
public class OAuthEvents : Microsoft.AspNetCore.Authentication.RemoteAuthenticationEvents, Microsoft.AspNetCore.Authentication.OAuth.IOAuthEvents
public class OAuthEvents : Microsoft.AspNetCore.Authentication.RemoteAuthenticationEvents
type OAuthEvents = class
    inherit RemoteAuthenticationEvents
    interface IOAuthEvents
    interface IRemoteAuthenticationEvents
type OAuthEvents = class
    inherit RemoteAuthenticationEvents
Public Class OAuthEvents
Inherits RemoteAuthenticationEvents
Implements IOAuthEvents
Public Class OAuthEvents
Inherits RemoteAuthenticationEvents
繼承
實作

建構函式

OAuthEvents()

預設實作。

屬性

OnAccessDenied

當遠端伺服器傳回拒絕存取錯誤時叫用。

(繼承來源 RemoteAuthenticationEvents)
OnCreatingTicket

取得或設定叫用 CreateTicket 方法時所叫用的函式。

OnRedirectToAuthorizationEndpoint

取得或設定叫用 RedirectToAuthorizationEndpoint 方法時所叫用的委派。

OnRemoteFailure

發生遠端失敗時叫用。

(繼承來源 RemoteAuthenticationEvents)
OnTicketReceived

在收到遠端票證之後叫用。

(繼承來源 RemoteAuthenticationEvents)

方法

AccessDenied(AccessDeniedContext)

當遠端伺服器傳回拒絕存取錯誤時叫用。

(繼承來源 RemoteAuthenticationEvents)
CreatingTicket(OAuthCreatingTicketContext)

在提供者成功驗證使用者之後叫用。

RedirectToAuthorizationEndpoint(OAuthRedirectToAuthorizationContext)

當「挑戰」導致重新導向授權 OAuth 中介軟體中的端點時呼叫。

RedirectToAuthorizationEndpoint(RedirectContext<OAuthOptions>)

當「挑戰」導致重新導向在 OAuth 處理常式中授權端點時呼叫。

RemoteFailure(FailureContext)

發生遠端失敗時叫用

(繼承來源 RemoteAuthenticationEvents)
RemoteFailure(RemoteFailureContext)

發生遠端失敗時叫用。

(繼承來源 RemoteAuthenticationEvents)
TicketReceived(TicketReceivedContext)

在收到遠端票證之後叫用。

(繼承來源 RemoteAuthenticationEvents)

適用於