Microsoft.AspNetCore.Authentication.Cookies 命名空間

包含支援 Cookie 型驗證的類型。

類別

BaseCookieContext

包含支援 Cookie 型驗證的類型。

ChunkingCookieManager

這處理由個別 Cookie 長度所限制的 Cookie。 它將回應的長 Cookie 分解,再從要求中重組 Cookie。

CookieAuthenticationDefaults

與 Cookie 型驗證處理常式相關的預設值

CookieAuthenticationEvents

允許訂閱在 Cookie 驗證期間引發的事件。

CookieAuthenticationHandler

Cookie 型驗證處理常式的實作。

CookieAuthenticationMiddleware

包含支援 Cookie 型驗證的類型。

CookieAuthenticationOptions

CookieAuthenticationOptions 的組態選項。

CookieRedirectContext

當 Challenge、SignIn 或 SignOut 導致 Cookie 中介軟體中重新導向時已呼叫

CookieSignedInContext

傳遞至 ICookieAuthenticationEvents 方法 SignedIn 的內容物件。

CookieSigningInContext

傳遞至 SigningIn(CookieSigningInContext) 的內容物件。

CookieSigningOutContext

傳遞至 的內容物件 SigningOut(CookieSigningOutContext)

CookieSlidingExpirationContext

傳遞至 CookieAuthenticationEvents OnCheckSlidingExpiration 方法的內容物件。

CookieValidatePrincipalContext

傳遞至 CookieAuthenticationEvents ValidatePrincipal 方法的內容物件。

PostConfigureCookieAuthenticationOptions

用來設定所有 CookieAuthenticationOptions 的預設值。

介面

ICookieAuthenticationEvents

指定回呼方法, CookieAuthenticationMiddleware 叫用以啟用開發人員對驗證程式的控制權。 />

ICookieManager

CookieAuthenticationMiddleware 會使用此專案來處理要求和回應 Cookie。 它會從一般 Cookie API 擷取,以允許區塊化等複雜作業。

ITicketStore

這會提供抽象儲存機制,以在伺服器上保留身分識別資訊,同時只將簡單的識別碼金鑰傳送至用戶端。 這最常用來減輕將大型身分識別序列化為 Cookie 的問題。

備註

如需使用 Cookie 型驗證的詳細資訊,請參閱不使用 ASP.NET Core身分識別使用 Cookie 驗證