4 instantiations of JwtBearerOptions
Microsoft.AspNetCore.Authentication.Test (4)
66 references to JwtBearerOptions
Aspire.Keycloak.Authentication (5)
Aspire.Keycloak.Authentication.Tests (6)
Microsoft.AspNetCore.Authentication.JwtBearer (32)
JwtBearerExtensions.cs (9)
46/// <param name="configureOptions">A delegate that allows configuring <see cref="JwtBearerOptions"/>.</param>
48public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, Action<JwtBearerOptions> configureOptions)
59/// <param name="configureOptions">A delegate that allows configuring <see cref="JwtBearerOptions"/>.</param>
61public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, Action<JwtBearerOptions> configureOptions)
73/// <param name="configureOptions">A delegate that allows configuring <see cref="JwtBearerOptions"/>.</param>
75public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<JwtBearerOptions> configureOptions)
77builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<JwtBearerOptions>, JwtBearerConfigureOptions>());
78builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<JwtBearerOptions>, JwtBearerPostConfigureOptions>());
79return builder.AddScheme<JwtBearerOptions, JwtBearerHandler>(authenticationScheme, displayName, configureOptions);
Microsoft.AspNetCore.Authentication.Test (23)