1 instantiation of TokenValidatedContext
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
1234
var context = new
TokenValidatedContext
(Context, Scheme, Options, user, properties)
12 references to TokenValidatedContext
Microsoft.AspNetCore.Authentication.OpenIdConnect (10)
Events\OpenIdConnectEvents.cs (2)
57
public Func<
TokenValidatedContext
, Task> OnTokenValidated { get; set; } = context => Task.CompletedTask;
115
public virtual Task TokenValidated(
TokenValidatedContext
context) => OnTokenValidated(context);
Events\TokenValidatedContext.cs (2)
12
/// A context for <see cref="OpenIdConnectEvents.TokenValidated(
TokenValidatedContext
)"/>.
17
/// Creates a <see cref="
TokenValidatedContext
"/>
OpenIdConnectHandler.cs (4)
787
var
tokenValidatedContext = await RunTokenValidatedEventAsync(authorizationResponse, null, user, properties, jwt, nonce);
870
var
tokenValidatedContext = await RunTokenValidatedEventAsync(authorizationResponse, tokenEndpointResponse, tokenEndpointUser, properties, tokenEndpointJwt, nonce);
1232
private async Task<
TokenValidatedContext
> RunTokenValidatedEventAsync(OpenIdConnectMessage authorizationResponse, OpenIdConnectMessage? tokenEndpointResponse, ClaimsPrincipal user, AuthenticationProperties properties, JwtSecurityToken jwt, string? nonce)
1234
var
context = new TokenValidatedContext(Context, Scheme, Options, user, properties)
OpenIdConnectOptions.cs (2)
407
/// SecurityTokenValidator can be used when <see cref="
TokenValidatedContext
.SecurityToken"/> needs a <see cref="JwtSecurityToken"/>.
408
/// When using TokenHandler, <see cref="
TokenValidatedContext
.SecurityToken"/> will be a <see cref="JsonWebToken"/>.
Microsoft.AspNetCore.Authentication.Test (2)
OpenIdConnect\OpenIdConnectEventTests.cs (1)
1181
public override Task TokenValidated(
TokenValidatedContext
context)
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
1181
public override Task TokenValidated(
TokenValidatedContext
context)