@@ -493,16 +493,16 @@ private async Task<AuthenticationTicket> HandleCodeOnlyFlow(OpenIdConnectMessage
493
493
494
494
await ValidateOpenIdConnectProtocolAsync ( null , message ) ;
495
495
496
- var securityTokenValidatedContext = await RunIdTokenValidatedEventAsync ( message , ticket , tokenEndpointResponse ) ;
497
- if ( securityTokenValidatedContext . HandledResponse )
496
+ var authenticationValidatedContext = await RunAuthenticationValidatedEventAsync ( message , ticket , tokenEndpointResponse ) ;
497
+ if ( authenticationValidatedContext . HandledResponse )
498
498
{
499
- return securityTokenValidatedContext . AuthenticationTicket ;
499
+ return authenticationValidatedContext . AuthenticationTicket ;
500
500
}
501
- else if ( securityTokenValidatedContext . Skipped )
501
+ else if ( authenticationValidatedContext . Skipped )
502
502
{
503
503
return null ;
504
504
}
505
- ticket = securityTokenValidatedContext . AuthenticationTicket ;
505
+ ticket = authenticationValidatedContext . AuthenticationTicket ;
506
506
507
507
if ( Options . GetClaimsFromUserInfoEndpoint )
508
508
{
@@ -524,17 +524,17 @@ private async Task<AuthenticationTicket> HandleIdTokenFlows(OpenIdConnectMessage
524
524
525
525
await ValidateOpenIdConnectProtocolAsync ( jwt , message ) ;
526
526
527
- var idTokenValidatedContext = await RunIdTokenValidatedEventAsync ( message , ticket , tokenEndpointResponse : null ) ;
528
- if ( idTokenValidatedContext . HandledResponse )
527
+ var authenticationValidatedContext = await RunAuthenticationValidatedEventAsync ( message , ticket , tokenEndpointResponse : null ) ;
528
+ if ( authenticationValidatedContext . HandledResponse )
529
529
{
530
- return idTokenValidatedContext . AuthenticationTicket ;
530
+ return authenticationValidatedContext . AuthenticationTicket ;
531
531
}
532
- else if ( idTokenValidatedContext . Skipped )
532
+ else if ( authenticationValidatedContext . Skipped )
533
533
{
534
534
return null ;
535
535
}
536
- message = idTokenValidatedContext . ProtocolMessage ;
537
- ticket = idTokenValidatedContext . AuthenticationTicket ;
536
+ message = authenticationValidatedContext . ProtocolMessage ;
537
+ ticket = authenticationValidatedContext . AuthenticationTicket ;
538
538
539
539
// Hybrid Flow
540
540
if ( message . Code != null )
@@ -889,26 +889,26 @@ private async Task<TokenResponseReceivedContext> RunTokenResponseReceivedEventAs
889
889
return tokenResponseReceivedContext ;
890
890
}
891
891
892
- private async Task < IdTokenValidatedContext > RunIdTokenValidatedEventAsync ( OpenIdConnectMessage message , AuthenticationTicket ticket , OpenIdConnectTokenEndpointResponse tokenEndpointResponse )
892
+ private async Task < AuthenticationValidatedContext > RunAuthenticationValidatedEventAsync ( OpenIdConnectMessage message , AuthenticationTicket ticket , OpenIdConnectTokenEndpointResponse tokenEndpointResponse )
893
893
{
894
- var idTokenValidatedContext = new IdTokenValidatedContext ( Context , Options )
894
+ var authenticationValidatedContext = new AuthenticationValidatedContext ( Context , Options )
895
895
{
896
896
AuthenticationTicket = ticket ,
897
897
ProtocolMessage = message ,
898
898
TokenEndpointResponse = tokenEndpointResponse ,
899
899
} ;
900
900
901
- await Options . Events . IdTokenValidated ( idTokenValidatedContext ) ;
902
- if ( idTokenValidatedContext . HandledResponse )
901
+ await Options . Events . AuthenticationValidated ( authenticationValidatedContext ) ;
902
+ if ( authenticationValidatedContext . HandledResponse )
903
903
{
904
- Logger . LogVerbose ( "The IdTokenValidated event returned Handled. " ) ;
904
+ Logger . LogVerbose ( "AuthenticationValidated.HandledResponse " ) ;
905
905
}
906
- else if ( idTokenValidatedContext . Skipped )
906
+ else if ( authenticationValidatedContext . Skipped )
907
907
{
908
- Logger . LogVerbose ( "The IdTokenValidated event returned Skipped. " ) ;
908
+ Logger . LogVerbose ( "AuthenticationValidated.Skipped " ) ;
909
909
}
910
910
911
- return idTokenValidatedContext ;
911
+ return authenticationValidatedContext ;
912
912
}
913
913
914
914
private async Task < UserInformationReceivedContext > RunUserInformationReceivedEventAsync ( AuthenticationTicket ticket , OpenIdConnectMessage message , JObject user )
0 commit comments