CookieAppBuilderExtensions.UseCookieAuthentication メソッド

定義

オーバーロード

UseCookieAuthentication(IApplicationBuilder)
古い.
古い.

UseCookieAuthentication は廃止されました。 AddAuthentication() を使用して Cookie 認証を構成します。ConfigureServices の AddCookie。 詳細については、 https://go.microsoft.com/fwlink/?linkid=845470 をご覧ください。

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)
古い.
古い.

UseCookieAuthentication は廃止されました。 AddAuthentication() を使用して Cookie 認証を構成します。ConfigureServices の AddCookie。 詳細については、 https://go.microsoft.com/fwlink/?linkid=845470 をご覧ください。

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

指定した CookieAuthenticationMiddlewareIApplicationBuilderにミドルウェアを追加します。これにより、Cookie 認証機能が有効になります。

UseCookieAuthentication(IApplicationBuilder)

ソース:
CookieAppBuilderExtensions.cs
ソース:
CookieAppBuilderExtensions.cs

注意事項

UseCookieAuthentication is obsolete. Configure Cookie authentication with AddAuthentication().AddCookie in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseCookieAuthentication は廃止されました。 AddAuthentication() を使用して Cookie 認証を構成します。ConfigureServices の AddCookie。 詳細については、 https://go.microsoft.com/fwlink/?linkid=845470 をご覧ください。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseCookieAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCookieAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCookieAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("UseCookieAuthentication is obsolete. Configure Cookie authentication with AddAuthentication().AddCookie in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCookieAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseCookieAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseCookieAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseCookieAuthentication is obsolete. Configure Cookie authentication with AddAuthentication().AddCookie in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseCookieAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseCookieAuthentication (app As IApplicationBuilder) As IApplicationBuilder

パラメーター

app
IApplicationBuilder

IApplicationBuilderハンドラーを追加する 。

戻り値

操作が完了した後のこのインスタンスへの参照。

属性

適用対象

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

ソース:
CookieAppBuilderExtensions.cs
ソース:
CookieAppBuilderExtensions.cs

注意事項

UseCookieAuthentication is obsolete. Configure Cookie authentication with AddAuthentication().AddCookie in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.

UseCookieAuthentication は廃止されました。 AddAuthentication() を使用して Cookie 認証を構成します。ConfigureServices の AddCookie。 詳細については、 https://go.microsoft.com/fwlink/?linkid=845470 をご覧ください。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseCookieAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^ options);
[System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCookieAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options);
[System.Obsolete("UseCookieAuthentication is obsolete. Configure Cookie authentication with AddAuthentication().AddCookie in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCookieAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions options);
[<System.Obsolete("See https://go.microsoft.com/fwlink/?linkid=845470", true)>]
static member UseCookieAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("UseCookieAuthentication is obsolete. Configure Cookie authentication with AddAuthentication().AddCookie in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.", true)>]
static member UseCookieAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseCookieAuthentication (app As IApplicationBuilder, options As CookieAuthenticationOptions) As IApplicationBuilder

パラメーター

app
IApplicationBuilder

IApplicationBuilderハンドラーを追加する 。

options
CookieAuthenticationOptions

CookieAuthenticationOptionsハンドラーのオプションを指定する 。

戻り値

操作が完了した後のこのインスタンスへの参照。

属性

適用対象

UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)

指定した CookieAuthenticationMiddlewareIApplicationBuilderにミドルウェアを追加します。これにより、Cookie 認証機能が有効になります。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseCookieAuthentication(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::CookieAuthenticationOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseCookieAuthentication (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.CookieAuthenticationOptions options);
static member UseCookieAuthentication : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.CookieAuthenticationOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseCookieAuthentication (app As IApplicationBuilder, options As CookieAuthenticationOptions) As IApplicationBuilder

パラメーター

app
IApplicationBuilder

IApplicationBuilderミドルウェアを追加する 。

options
CookieAuthenticationOptions

CookieAuthenticationOptionsミドルウェアのオプションを指定する 。

戻り値

操作が完了した後のこのインスタンスへの参照。

適用対象