CookieAppBuilderExtensions.UseCookieAuthentication Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
UseCookieAuthentication(IApplicationBuilder) |
Obsoletos.
Obsoletos.
UseCookieAuthentication está obsoleto. Configure la autenticación de cookies con AddAuthentication(). AddCookie en ConfigureServices. Para obtener más información, consulte https://go.microsoft.com/fwlink/?linkid=845470. |
UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) |
Obsoletos.
Obsoletos.
UseCookieAuthentication está obsoleto. Configure la autenticación de cookies con AddAuthentication(). AddCookie en ConfigureServices. Para obtener más información, consulte https://go.microsoft.com/fwlink/?linkid=845470. |
UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions) |
Agrega el CookieAuthenticationMiddleware middleware al especificado IApplicationBuilder, que habilita las funcionalidades de autenticación de cookies. |
UseCookieAuthentication(IApplicationBuilder)
Precaución
Precaución
UseCookieAuthentication is obsolete. Configure Cookie authentication with AddAuthentication().AddCookie in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.
UseCookieAuthentication está obsoleto. Configure la autenticación de cookies con AddAuthentication(). AddCookie en ConfigureServices. Para obtener más información, consulte 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
Parámetros
al IApplicationBuilder que se va a agregar el controlador.
Devoluciones
Una referencia a esta instancia después de que se haya completado la operación.
- Atributos
Se aplica a
UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)
Precaución
Precaución
UseCookieAuthentication is obsolete. Configure Cookie authentication with AddAuthentication().AddCookie in ConfigureServices. See https://go.microsoft.com/fwlink/?linkid=845470 for more details.
UseCookieAuthentication está obsoleto. Configure la autenticación de cookies con AddAuthentication(). AddCookie en ConfigureServices. Para obtener más información, consulte 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
Parámetros
al IApplicationBuilder que se va a agregar el controlador.
- options
- CookieAuthenticationOptions
que CookieAuthenticationOptions especifica las opciones del controlador.
Devoluciones
Una referencia a esta instancia después de que se haya completado la operación.
- Atributos
Se aplica a
UseCookieAuthentication(IApplicationBuilder, CookieAuthenticationOptions)
Agrega el CookieAuthenticationMiddleware middleware al especificado IApplicationBuilder, que habilita las funcionalidades de autenticación de cookies.
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
Parámetros
al IApplicationBuilder que se va a agregar el middleware.
- options
- CookieAuthenticationOptions
que CookieAuthenticationOptions especifica las opciones del middleware.
Devoluciones
Una referencia a esta instancia después de que se haya completado la operación.