1 instantiation of AuthenticationBuilder
Microsoft.AspNetCore.Authentication (1)
AuthenticationServiceCollectionExtensions.cs (1)
32return new AuthenticationBuilder(services);
272 references to AuthenticationBuilder
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
672var authentication = builder.Services
Aspire.Keycloak.Authentication (25)
AspireKeycloakExtensions.cs (25)
13/// Provides extension methods for registering Keycloak-related services in an <see cref="AuthenticationBuilder"/>. 22/// <param name="builder">The <see cref="AuthenticationBuilder" /> to add services to.</param> 29public static AuthenticationBuilder AddKeycloakJwtBearer(this AuthenticationBuilder builder, string serviceName, string realm) 35/// <param name="builder">The <see cref="AuthenticationBuilder" /> to add services to.</param> 43public static AuthenticationBuilder AddKeycloakJwtBearer(this AuthenticationBuilder builder, string serviceName, string realm, string authenticationScheme) 49/// <param name="builder">The <see cref="AuthenticationBuilder" /> to add services to.</param> 57public static AuthenticationBuilder AddKeycloakJwtBearer(this AuthenticationBuilder builder, string serviceName, string realm, Action<JwtBearerOptions>? configureOptions) 63/// <param name="builder">The <see cref="AuthenticationBuilder" /> to add services to.</param> 72public static AuthenticationBuilder AddKeycloakJwtBearer( 73this AuthenticationBuilder builder, 101/// <param name="builder">The <see cref="AuthenticationBuilder" /> to add services to.</param> 108public static AuthenticationBuilder AddKeycloakOpenIdConnect(this AuthenticationBuilder builder, string serviceName, string realm) 114/// <param name="builder">The <see cref="AuthenticationBuilder" /> to add services to.</param> 122public static AuthenticationBuilder AddKeycloakOpenIdConnect(this AuthenticationBuilder builder, string serviceName, string realm, string authenticationScheme) 128/// <param name="builder">The <see cref="AuthenticationBuilder" /> to add services to.</param> 136public static AuthenticationBuilder AddKeycloakOpenIdConnect(this AuthenticationBuilder builder, string serviceName, string realm, Action<OpenIdConnectOptions>? configureOptions) 142/// <param name="builder">The <see cref="AuthenticationBuilder" /> to add services to.</param> 151public static AuthenticationBuilder AddKeycloakOpenIdConnect( 152this AuthenticationBuilder builder,
Identity.DefaultUI.WebSite (2)
Services\ContosoAuthenticationBuilderExtensions.cs (2)
10public static AuthenticationBuilder AddContosoAuthentication( 11this AuthenticationBuilder builder,
Microsoft.AspNetCore.Authentication (13)
AuthenticationBuilder.cs (6)
17/// Initializes a new instance of <see cref="AuthenticationBuilder"/>. 30private AuthenticationBuilder AddSchemeHelper<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions) 65public virtual AuthenticationBuilder AddScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions) 78public virtual AuthenticationBuilder AddScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, Action<TOptions>? configureOptions) 93public virtual AuthenticationBuilder AddRemoteScheme<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(string authenticationScheme, string? displayName, Action<TOptions>? configureOptions) 109public virtual AuthenticationBuilder AddPolicyScheme(string authenticationScheme, string? displayName, Action<PolicySchemeOptions> configureOptions)
AuthenticationServiceCollectionExtensions.cs (7)
18/// <returns>A <see cref="AuthenticationBuilder"/> that can be used to further configure authentication.</returns> 19public static AuthenticationBuilder AddAuthentication(this IServiceCollection services) 41/// <returns>A <see cref="AuthenticationBuilder"/> that can be used to further configure authentication.</returns> 42public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, string defaultScheme) 50/// <returns>A <see cref="AuthenticationBuilder"/> that can be used to further configure authentication.</returns> 51public static AuthenticationBuilder AddAuthentication(this IServiceCollection services, Action<AuthenticationOptions> configureOptions) 56var builder = services.AddAuthentication();
Microsoft.AspNetCore.Authentication.BearerToken (12)
BearerTokenExtensions.cs (12)
23/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 25public static AuthenticationBuilder AddBearerToken(this AuthenticationBuilder builder) 34/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 37public static AuthenticationBuilder AddBearerToken(this AuthenticationBuilder builder, string authenticationScheme) 46/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 49public static AuthenticationBuilder AddBearerToken(this AuthenticationBuilder builder, Action<BearerTokenOptions> configure) 58/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 62public static AuthenticationBuilder AddBearerToken(this AuthenticationBuilder builder, string authenticationScheme, Action<BearerTokenOptions> configure)
Microsoft.AspNetCore.Authentication.Certificate (20)
CertificateAuthenticationExtensions.cs (20)
24/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 25/// <returns>The <see cref="AuthenticationBuilder"/>.</returns> 26public static AuthenticationBuilder AddCertificate(this AuthenticationBuilder builder) 37/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 39/// <returns>The <see cref="AuthenticationBuilder"/>.</returns> 40public static AuthenticationBuilder AddCertificate(this AuthenticationBuilder builder, string authenticationScheme) 51/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 53/// <returns>The <see cref="AuthenticationBuilder"/>.</returns> 54public static AuthenticationBuilder AddCertificate(this AuthenticationBuilder builder, Action<CertificateAuthenticationOptions>? configureOptions) 65/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 68/// <returns>The <see cref="AuthenticationBuilder"/>.</returns> 69public static AuthenticationBuilder AddCertificate( 70this AuthenticationBuilder builder, 83/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 85/// <returns>The <see cref="AuthenticationBuilder"/>.</returns> 86public static AuthenticationBuilder AddCertificateCache( 87this AuthenticationBuilder builder,
Microsoft.AspNetCore.Authentication.Cookies (20)
CookieExtensions.cs (20)
17/// Adds cookie authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 23/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 25public static AuthenticationBuilder AddCookie(this AuthenticationBuilder builder) 29/// Adds cookie authentication to <see cref="AuthenticationBuilder"/> using the specified scheme. 34/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 37public static AuthenticationBuilder AddCookie(this AuthenticationBuilder builder, string authenticationScheme) 41/// Adds cookie authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 47/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 50public static AuthenticationBuilder AddCookie(this AuthenticationBuilder builder, Action<CookieAuthenticationOptions> configureOptions) 54/// Adds cookie authentication to <see cref="AuthenticationBuilder"/> using the specified scheme. 59/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 63public static AuthenticationBuilder AddCookie(this AuthenticationBuilder builder, string authenticationScheme, Action<CookieAuthenticationOptions> configureOptions) 67/// Adds cookie authentication to <see cref="AuthenticationBuilder"/> using the specified scheme. 72/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 77public static AuthenticationBuilder AddCookie(this AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<CookieAuthenticationOptions> configureOptions)
Microsoft.AspNetCore.Authentication.Facebook (16)
FacebookExtensions.cs (16)
15/// Adds Facebook OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 21/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 23public static AuthenticationBuilder AddFacebook(this AuthenticationBuilder builder) 27/// Adds Facebook OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 33/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 36public static AuthenticationBuilder AddFacebook(this AuthenticationBuilder builder, Action<FacebookOptions> configureOptions) 40/// Adds Facebook OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 46/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 50public static AuthenticationBuilder AddFacebook(this AuthenticationBuilder builder, string authenticationScheme, Action<FacebookOptions> configureOptions) 54/// Adds Facebook OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 60/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 64public static AuthenticationBuilder AddFacebook(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<FacebookOptions> configureOptions)
Microsoft.AspNetCore.Authentication.Google (16)
GoogleExtensions.cs (16)
15/// Adds Google OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 21/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 23public static AuthenticationBuilder AddGoogle(this AuthenticationBuilder builder) 27/// Adds Google OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 33/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 36public static AuthenticationBuilder AddGoogle(this AuthenticationBuilder builder, Action<GoogleOptions> configureOptions) 40/// Adds Google OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 46/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 50public static AuthenticationBuilder AddGoogle(this AuthenticationBuilder builder, string authenticationScheme, Action<GoogleOptions> configureOptions) 54/// Adds Google OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 60/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 65public static AuthenticationBuilder AddGoogle(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<GoogleOptions> configureOptions)
Microsoft.AspNetCore.Authentication.JwtBearer (15)
JwtBearerExtensions.cs (15)
22/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 24public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder) 33/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 36public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, string authenticationScheme) 45/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 48public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, Action<JwtBearerOptions> configureOptions) 57/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 61public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, Action<JwtBearerOptions> configureOptions) 70/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 75public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<JwtBearerOptions> configureOptions)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (16)
MicrosoftAccountExtensions.cs (16)
15/// Adds Microsoft Account OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 21/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 23public static AuthenticationBuilder AddMicrosoftAccount(this AuthenticationBuilder builder) 27/// Adds Microsoft Account OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 33/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 36public static AuthenticationBuilder AddMicrosoftAccount(this AuthenticationBuilder builder, Action<MicrosoftAccountOptions> configureOptions) 40/// Adds Microsoft Account OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 46/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 50public static AuthenticationBuilder AddMicrosoftAccount(this AuthenticationBuilder builder, string authenticationScheme, Action<MicrosoftAccountOptions> configureOptions) 54/// Adds Microsoft Account OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 60/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 65public static AuthenticationBuilder AddMicrosoftAccount(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<MicrosoftAccountOptions> configureOptions)
Microsoft.AspNetCore.Authentication.Negotiate (16)
NegotiateExtensions.cs (16)
19/// Configures the <see cref="AuthenticationBuilder"/> to use Negotiate (also known as Windows, Kerberos, or NTLM) authentication 25/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 27public static AuthenticationBuilder AddNegotiate(this AuthenticationBuilder builder) 31/// Configures the <see cref="AuthenticationBuilder"/> to use Negotiate (also known as Windows, Kerberos, or NTLM) authentication 37/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 40public static AuthenticationBuilder AddNegotiate(this AuthenticationBuilder builder, Action<NegotiateOptions> configureOptions) 44/// Configures the <see cref="AuthenticationBuilder"/> to use Negotiate (also known as Windows, Kerberos, or NTLM) authentication 50/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 54public static AuthenticationBuilder AddNegotiate(this AuthenticationBuilder builder, string authenticationScheme, Action<NegotiateOptions> configureOptions) 58/// Configures the <see cref="AuthenticationBuilder"/> to use Negotiate (also known as Windows, Kerberos, or NTLM) authentication 64/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 69public static AuthenticationBuilder AddNegotiate(this AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<NegotiateOptions> configureOptions)
Microsoft.AspNetCore.Authentication.OAuth (16)
OAuthExtensions.cs (16)
18/// Adds OAuth 2.0 based authentication to <see cref="AuthenticationBuilder"/> using the specified authentication scheme. 20/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 24public static AuthenticationBuilder AddOAuth(this AuthenticationBuilder builder, string authenticationScheme, Action<OAuthOptions> configureOptions) 28/// Adds OAuth 2.0 based authentication to <see cref="AuthenticationBuilder"/> using the specified authentication scheme. 30/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 35public static AuthenticationBuilder AddOAuth(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<OAuthOptions> configureOptions) 39/// Adds OAuth 2.0 based authentication to <see cref="AuthenticationBuilder"/> using the specified authentication scheme. 41/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 45public static AuthenticationBuilder AddOAuth<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(this AuthenticationBuilder builder, string authenticationScheme, Action<TOptions> configureOptions) 51/// Adds OAuth 2.0 based authentication to <see cref="AuthenticationBuilder"/> using the specified authentication scheme. 53/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 58public static AuthenticationBuilder AddOAuth<TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] THandler>(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<TOptions> configureOptions)
Microsoft.AspNetCore.Authentication.OpenIdConnect (16)
OpenIdConnectExtensions.cs (16)
17/// Adds OpenId Connect authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 24/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 26public static AuthenticationBuilder AddOpenIdConnect(this AuthenticationBuilder builder) 30/// Adds OpenId Connect authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 37/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 40public static AuthenticationBuilder AddOpenIdConnect(this AuthenticationBuilder builder, Action<OpenIdConnectOptions> configureOptions) 44/// Adds OpenId Connect authentication to <see cref="AuthenticationBuilder"/> using the specified scheme. 50/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 54public static AuthenticationBuilder AddOpenIdConnect(this AuthenticationBuilder builder, string authenticationScheme, Action<OpenIdConnectOptions> configureOptions) 58/// Adds OpenId Connect authentication to <see cref="AuthenticationBuilder"/> using the specified scheme. 64/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 69public static AuthenticationBuilder AddOpenIdConnect(this AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<OpenIdConnectOptions> configureOptions)
Microsoft.AspNetCore.Authentication.Test (30)
BearerTokenTests.cs (1)
22protected override void RegisterAuth(AuthenticationBuilder services, Action<BearerTokenOptions> configure)
CertificateTests.cs (1)
845AuthenticationBuilder authBuilder;
CookieTests.cs (1)
30protected override void RegisterAuth(AuthenticationBuilder services, Action<CookieAuthenticationOptions> configure)
FacebookTests.cs (1)
29protected override void RegisterAuth(AuthenticationBuilder services, Action<FacebookOptions> configure)
GoogleTests.cs (1)
29protected override void RegisterAuth(AuthenticationBuilder services, Action<GoogleOptions> configure)
JwtBearerTests.cs (1)
34protected override void RegisterAuth(AuthenticationBuilder services, Action<JwtBearerOptions> configure)
JwtBearerTests_Handler.cs (2)
34protected override void RegisterAuth(AuthenticationBuilder services, Action<JwtBearerOptions> configure = null) 1004var builder = services.AddAuthentication(o =>
MicrosoftAccountTests.cs (1)
30protected override void RegisterAuth(AuthenticationBuilder services, Action<MicrosoftAccountOptions> configure)
OAuthTests.cs (1)
25protected override void RegisterAuth(AuthenticationBuilder services, Action<OAuthOptions> configure)
OpenIdConnect\OpenIdConnectTests.cs (5)
438var builder = services.AddAuthentication(); 471var builder = services.AddAuthentication(); 506var builder = services.AddAuthentication(); 529var builder = services.AddAuthentication(); 554var builder = services.AddAuthentication();
RemoteAuthenticationTests.cs (2)
21var builder = s.AddAuthentication(); 92var builder = services.AddAuthentication(o => o.DefaultSignInScheme = DefaultScheme);
SharedAuthenticationTests.cs (12)
24protected abstract void RegisterAuth(AuthenticationBuilder services, Action<TOptions> configure); 31var builder = services.AddAuthentication(o => 88var builder = services.AddAuthentication(o => 130var builder = services.AddAuthentication(o => 170var builder = services.AddAuthentication(o => 220var builder = services.AddSingleton<IClaimsTransformation>(transform).AddAuthentication(o => 249var builder = services.AddAuthentication(o => 288var builder = services.AddAuthentication(o => 327var builder = services.AddAuthentication(o => 396var builder = services.AddAuthentication(o => 465var builder = services.AddAuthentication(o => 539var builder = services.AddAuthentication();
TwitterTests.cs (1)
28protected override void RegisterAuth(AuthenticationBuilder services, Action<TwitterOptions> configure)
Microsoft.AspNetCore.Authentication.Twitter (16)
TwitterExtensions.cs (16)
17/// Adds Twitter OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 23/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 25public static AuthenticationBuilder AddTwitter(this AuthenticationBuilder builder) 29/// Adds Twitter OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 35/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 38public static AuthenticationBuilder AddTwitter(this AuthenticationBuilder builder, Action<TwitterOptions> configureOptions) 42/// Adds Twitter OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 48/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 52public static AuthenticationBuilder AddTwitter(this AuthenticationBuilder builder, string authenticationScheme, Action<TwitterOptions> configureOptions) 56/// Adds Twitter OAuth-based authentication to <see cref="AuthenticationBuilder"/> using the default scheme. 62/// <param name="builder">The <see cref="AuthenticationBuilder"/>.</param> 67public static AuthenticationBuilder AddTwitter(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<TwitterOptions> configureOptions)
Microsoft.AspNetCore.Authentication.WsFederation (8)
WsFederationExtensions.cs (8)
21public static AuthenticationBuilder AddWsFederation(this AuthenticationBuilder builder) 30public static AuthenticationBuilder AddWsFederation(this AuthenticationBuilder builder, Action<WsFederationOptions> configureOptions) 40public static AuthenticationBuilder AddWsFederation(this AuthenticationBuilder builder, string authenticationScheme, Action<WsFederationOptions> configureOptions) 51public static AuthenticationBuilder AddWsFederation(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<WsFederationOptions> configureOptions)
Microsoft.AspNetCore.Identity (14)
IdentityBuilderExtensions.cs (2)
89/// but does not configure authentication. Call <see cref="BearerTokenExtensions.AddBearerToken(AuthenticationBuilder, Action{BearerTokenOptions}?)"/> and/or 90/// <see cref="IdentityCookieAuthenticationBuilderExtensions.AddIdentityCookies(AuthenticationBuilder)"/> to configure authentication separately.
IdentityCookiesBuilderExtensions.cs (12)
20/// <param name="builder">The current <see cref="AuthenticationBuilder"/> instance.</param> 22public static IdentityCookiesBuilder AddIdentityCookies(this AuthenticationBuilder builder) 28/// <param name="builder">The current <see cref="AuthenticationBuilder"/> instance.</param> 31public static IdentityCookiesBuilder AddIdentityCookies(this AuthenticationBuilder builder, Action<IdentityCookiesBuilder> configureCookies) 45/// <param name="builder">The current <see cref="AuthenticationBuilder"/> instance.</param> 47public static OptionsBuilder<CookieAuthenticationOptions> AddApplicationCookie(this AuthenticationBuilder builder) 63/// <param name="builder">The current <see cref="AuthenticationBuilder"/> instance.</param> 65public static OptionsBuilder<CookieAuthenticationOptions> AddExternalCookie(this AuthenticationBuilder builder) 78/// <param name="builder">The current <see cref="AuthenticationBuilder"/> instance.</param> 80public static OptionsBuilder<CookieAuthenticationOptions> AddTwoFactorRememberMeCookie(this AuthenticationBuilder builder) 96/// <param name="builder">The current <see cref="AuthenticationBuilder"/> instance.</param> 98public static OptionsBuilder<CookieAuthenticationOptions> AddTwoFactorUserIdCookie(this AuthenticationBuilder builder)