50 references to JwtBearerOptions
Aspire.Keycloak.Authentication (5)
AspireKeycloakExtensions.cs (5)
52
/// <param name="configureOptions">An optional action to configure the <see cref="
JwtBearerOptions
"/>.</param>
57
public static AuthenticationBuilder AddKeycloakJwtBearer(this AuthenticationBuilder builder, string serviceName, string realm, Action<
JwtBearerOptions
>? configureOptions)
67
/// <param name="configureOptions">An action to configure the <see cref="
JwtBearerOptions
"/>.</param>
77
Action<
JwtBearerOptions
>? configureOptions)
89
.AddOptions<
JwtBearerOptions
>(authenticationScheme)
Aspire.Keycloak.Authentication.Tests (13)
AspireKeycloakExtensionTests.cs (6)
30
host.Services.GetRequiredService<IOptionsMonitor<
JwtBearerOptions
>>()
50
host.Services.GetRequiredService<IOptionsMonitor<
JwtBearerOptions
>>().Get(scheme));
70
var
options = host.Services.GetRequiredService<IOptionsMonitor<
JwtBearerOptions
>>()
92
var
options = host.Services.GetRequiredService<IOptionsMonitor<
JwtBearerOptions
>>()
KeycloakAuthenticationPublicApiTests.cs (7)
140
Action<
JwtBearerOptions
>? configureOptions = null;
157
Action<
JwtBearerOptions
>? configureOptions = null;
176
Action<
JwtBearerOptions
>? configureOptions = null;
193
Action<
JwtBearerOptions
>? configureOptions = null;
215
Action<
JwtBearerOptions
>? configureOptions = null;
239
Action<
JwtBearerOptions
>? configureOptions = null;
263
Action<
JwtBearerOptions
>? configureOptions = null;
Microsoft.AspNetCore.Authentication.JwtBearer (32)
AuthenticationFailedContext.cs (2)
11
public class AuthenticationFailedContext : ResultContext<
JwtBearerOptions
>
20
JwtBearerOptions
options)
ForbiddenContext.cs (2)
11
public class ForbiddenContext : ResultContext<
JwtBearerOptions
>
20
JwtBearerOptions
options)
JwtBearerChallengeContext.cs (4)
11
public class JwtBearerChallengeContext : PropertiesContext<
JwtBearerOptions
>
20
JwtBearerOptions
options,
32
/// <see cref="
JwtBearerOptions
.IncludeErrorDetails"/> is set to <c>false</c>.
39
/// <see cref="
JwtBearerOptions
.IncludeErrorDetails"/> is set to <c>false</c>.
JwtBearerConfigureOptions.cs (3)
13
internal sealed class JwtBearerConfigureOptions : IConfigureNamedOptions<
JwtBearerOptions
>
29
public void Configure(string? name,
JwtBearerOptions
options)
94
public void Configure(
JwtBearerOptions
options)
JwtBearerDefaults.cs (1)
12
/// Default value for AuthenticationScheme property in the <see cref="
JwtBearerOptions
"/>.
JwtBearerExtensions.cs (9)
46
/// <param name="configureOptions">A delegate that allows configuring <see cref="
JwtBearerOptions
"/>.</param>
48
public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, Action<
JwtBearerOptions
> configureOptions)
59
/// <param name="configureOptions">A delegate that allows configuring <see cref="
JwtBearerOptions
"/>.</param>
61
public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, Action<
JwtBearerOptions
> configureOptions)
73
/// <param name="configureOptions">A delegate that allows configuring <see cref="
JwtBearerOptions
"/>.</param>
75
public static AuthenticationBuilder AddJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, string? displayName, Action<
JwtBearerOptions
> configureOptions)
77
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<
JwtBearerOptions
>, JwtBearerConfigureOptions>());
78
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<
JwtBearerOptions
>, JwtBearerPostConfigureOptions>());
79
return builder.AddScheme<
JwtBearerOptions
, JwtBearerHandler>(authenticationScheme, displayName, configureOptions);
JwtBearerHandler.cs (3)
20
public class JwtBearerHandler : AuthenticationHandler<
JwtBearerOptions
>
27
public JwtBearerHandler(IOptionsMonitor<
JwtBearerOptions
> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock)
35
public JwtBearerHandler(IOptionsMonitor<
JwtBearerOptions
> options, ILoggerFactory logger, UrlEncoder encoder)
JwtBearerOptions.cs (1)
27
/// Initializes a new instance of <see cref="
JwtBearerOptions
"/>.
JwtBearerPostConfigureOptions.cs (3)
12
/// Used to setup defaults for all <see cref="
JwtBearerOptions
"/>.
14
public class JwtBearerPostConfigureOptions : IPostConfigureOptions<
JwtBearerOptions
>
21
public void PostConfigure(string? name,
JwtBearerOptions
options)
MessageReceivedContext.cs (2)
11
public class MessageReceivedContext : ResultContext<
JwtBearerOptions
>
20
JwtBearerOptions
options)
TokenValidatedContext.cs (2)
12
public class TokenValidatedContext : ResultContext<
JwtBearerOptions
>
21
JwtBearerOptions
options)