Partager via


IdentityCookieAuthenticationBuilderExtensions.AddExternalCookie Méthode

Définition

Ajoute le cookie d’identité utilisé pour les connexions externes.

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)

Paramètres

builder
AuthenticationBuilder

Instance actuelle de AuthenticationBuilder.

Retours

OptionsBuilder<TOptions> qui peut être utilisé pour configurer l’authentification par cookie.

S’applique à