Compartir a través de


IdentityCookieAuthenticationBuilderExtensions.AddExternalCookie Método

Definición

Agrega la cookie de identidad usada para los inicios de sesión externos.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Options::OptionsBuilder<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^> ^ AddExternalCookie(Microsoft::AspNetCore::Authentication::AuthenticationBuilder ^ builder);
public static Microsoft.Extensions.Options.OptionsBuilder<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> AddExternalCookie (this Microsoft.AspNetCore.Authentication.AuthenticationBuilder builder);
static member AddExternalCookie : Microsoft.AspNetCore.Authentication.AuthenticationBuilder -> Microsoft.Extensions.Options.OptionsBuilder<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions>
<Extension()>
Public Function AddExternalCookie (builder As AuthenticationBuilder) As OptionsBuilder(Of CookieAuthenticationOptions)

Parámetros

builder
AuthenticationBuilder

Instancia de AuthenticationBuilder actual.

Devoluciones

OptionsBuilder<TOptions> que se puede usar para configurar la autenticación de cookies.

Se aplica a