Microsoft.AspNetCore.Authentication.Cookies 名前空間
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Cookie ベースの認証をサポートする型が含まれています。
クラス
| Name | 説明 |
|---|---|
| BaseCookieContext |
Cookie ベースの認証をサポートする型が含まれています。 |
| ChunkingCookieManager |
これにより、Cookie の長さごとに制限される Cookie が処理されます。 応答の長い Cookie を分解し、要求から再構築します。 |
| CookieAuthenticationDefaults |
Cookie ベースの認証ハンドラーに関連する既定値 |
| CookieAuthenticationEvents |
Cookie 認証中に発生したイベントのサブスクライブを許可します。 |
| CookieAuthenticationHandler |
Cookie ベースの認証ハンドラーの実装。 |
| CookieAuthenticationMiddleware |
Cookie ベースの認証をサポートする型が含まれています。 |
| CookieAuthenticationOptions |
CookieAuthenticationOptionsの構成オプション。 |
| CookieRedirectContext |
チャレンジ、SignIn、または SignOut によって Cookie ミドルウェアでリダイレクトが発生したときに渡されるコンテキスト |
| CookieSignedInContext |
ICookieAuthenticationEvents メソッド SignedIn に渡されるコンテキスト オブジェクト。 |
| CookieSigningInContext |
SigningIn(CookieSigningInContext)に渡されるコンテキスト オブジェクト。 |
| CookieSigningOutContext |
に渡されるコンテキスト オブジェクト SigningOut(CookieSigningOutContext) |
| CookieSlidingExpirationContext |
CookieAuthenticationEvents OnCheckSlidingExpiration メソッドに渡されるコンテキスト オブジェクト。 |
| CookieValidatePrincipalContext |
CookieAuthenticationEvents ValidatePrincipal メソッドに渡されるコンテキスト オブジェクト。 |
| PostConfigureCookieAuthenticationOptions |
すべての CookieAuthenticationOptionsの既定値を設定するために使用されます。 |
インターフェイス
| Name | 説明 |
|---|---|
| ICookieAuthenticationEvents |
CookieAuthenticationMiddlewareが認証プロセスを開発者が制御できるように呼び出すコールバック メソッドを指定します。 /> |
| ICookieManager |
これは、要求と応答の Cookie を処理するために CookieAuthenticationMiddleware によって使用されます。 通常の Cookie API から抽象化され、チャンクなどの複雑な操作を可能にします。 |
| ITicketStore |
これにより、単純な識別子キーのみをクライアントに送信しながら、サーバー上の ID 情報を保持するための抽象的なストレージメカニズムが提供されます。 これは、大きな ID を Cookie にシリアル化する場合の問題を軽減するために最も一般的に使用されます。 |
注釈
Cookie ベースの認証の使用の詳細については、「ASP.NET Core ID なしで Cookie 認証を使用する」を参照してください。