Udostępnij za pośrednictwem


IdentityCookieAuthenticationBuilderExtensions.AddTwoFactorUserIdCookie Metoda

Definicja

Dodaje plik cookie tożsamości używany do logowania dwuskładnikowego.

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

Parametry

builder
AuthenticationBuilder

Bieżące AuthenticationBuilder wystąpienie.

Zwraca

Za OptionsBuilder<TOptions> pomocą którego można skonfigurować uwierzytelnianie plików cookie.

Dotyczy