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