다음을 통해 공유


IdentityCookieAuthenticationBuilderExtensions.AddTwoFactorUserIdCookie 메서드

정의

2단계 로그인에 사용되는 ID 쿠키를 추가합니다.

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)

매개 변수

builder
AuthenticationBuilder

현재 AuthenticationBuilder 인스턴스입니다.

반환

OptionsBuilder<TOptions> 쿠키 인증을 구성하는 데 사용할 수 있는 입니다.

적용 대상