Skip to content

Commit 221bfeb

Browse files
Access events via options
Use the same approach as the other OAuth handlers and access the Events property via the Options property.
1 parent 88c8faa commit 221bfeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AspNet.Security.OAuth.Apple/AppleAuthenticationHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
9999
if (Options.ValidateTokens)
100100
{
101101
var validateIdContext = new AppleValidateIdTokenContext(Context, Scheme, Options, idToken);
102-
await Events.ValidateIdToken(validateIdContext);
102+
await Options.Events.ValidateIdToken(validateIdContext);
103103
}
104104

105105
var tokenClaims = ExtractClaimsFromToken(idToken);
@@ -124,7 +124,7 @@ protected override async Task<OAuthTokenResponse> ExchangeCodeAsync(string code,
124124
if (Options.GenerateClientSecret)
125125
{
126126
var context = new AppleGenerateClientSecretContext(Context, Scheme, Options);
127-
await Events.GenerateClientSecret(context);
127+
await Options.Events.GenerateClientSecret(context);
128128
}
129129

130130
return await base.ExchangeCodeAsync(code, redirectUri);

0 commit comments

Comments
 (0)