Skip to content

Commit b33d929

Browse files
Access Events directly
Access the Events property directly, rather than via Options, so the correct value is used if EventsType is set.
1 parent c9b67a6 commit b33d929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generators/app/templates/AuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
7575
var context = new OAuthCreatingTicketContext(principal, properties, Context, Scheme, Options, Backchannel, tokens, payload.RootElement);
7676
context.RunClaimActions();
7777

78-
await Options.Events.CreatingTicket(context);
78+
await Events.CreatingTicket(context);
7979
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
8080
}
8181
}

0 commit comments

Comments
 (0)