17 references to BearerTokenOptions
Microsoft.AspNetCore.Authentication.BearerToken (12)
BearerTokenConfigureOptions.cs (3)
9internal sealed class BearerTokenConfigureOptions(IDataProtectionProvider dp) : IConfigureNamedOptions<BearerTokenOptions> 13public void Configure(string? schemeName, BearerTokenOptions options) 24public void Configure(BearerTokenOptions options)
BearerTokenDefaults.cs (1)
12/// Default value for AuthenticationScheme property in the <see cref="BearerTokenOptions"/>.
BearerTokenExtensions.cs (4)
49public static AuthenticationBuilder AddBearerToken(this AuthenticationBuilder builder, Action<BearerTokenOptions> configure) 62public static AuthenticationBuilder AddBearerToken(this AuthenticationBuilder builder, string authenticationScheme, Action<BearerTokenOptions> configure) 69builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<BearerTokenOptions>, BearerTokenConfigureOptions>()); 70return builder.AddScheme<BearerTokenOptions, BearerTokenHandler>(authenticationScheme, configure);
BearerTokenHandler.cs (2)
16internal sealed class BearerTokenHandler(IOptionsMonitor<BearerTokenOptions> optionsMonitor, ILoggerFactory loggerFactory, UrlEncoder urlEncoder) 17: SignInAuthenticationHandler<BearerTokenOptions>(optionsMonitor, loggerFactory, urlEncoder)
MessageReceivedContext.cs (2)
11public class MessageReceivedContext : ResultContext<BearerTokenOptions> 20BearerTokenOptions options)
Microsoft.AspNetCore.Authentication.Test (3)
BearerTokenTests.cs (3)
8public class BearerTokenTests : SharedAuthenticationTests<BearerTokenOptions> 18return services.Select(d => d.ServiceType).Single(typeof(AuthenticationHandler<BearerTokenOptions>).IsAssignableFrom); 22protected override void RegisterAuth(AuthenticationBuilder services, Action<BearerTokenOptions> configure)
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
46var bearerTokenOptions = endpoints.ServiceProvider.GetRequiredService<IOptionsMonitor<BearerTokenOptions>>();
IdentityBuilderExtensions.cs (1)
89/// but does not configure authentication. Call <see cref="BearerTokenExtensions.AddBearerToken(AuthenticationBuilder, Action{BearerTokenOptions}?)"/> and/or