Share via


IdentityCookieAuthenticationBuilderExtensions.AddTwoFactorUserIdCookie Method

Definition

Adds the identity cookie used for two factor logins.

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)

Parameters

builder
AuthenticationBuilder

The current AuthenticationBuilder instance.

Returns

The OptionsBuilder<TOptions> which can be used to configure the cookie authentication.

Applies to