Skip to content

Commit

Permalink
Set properties on the context before calling OnAuthenticated so they …
Browse files Browse the repository at this point in the history
…are available to the callback (#145)

Addresses #143
  • Loading branch information
Chris Patrick authored and Tratcher committed Nov 30, 2017
1 parent 1653abe commit 6fcee95
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ protected override async Task<AuthenticationTicket> AuthenticateCoreAsync()
context.Identity.AddClaim(new Claim(ClaimTypes.Email, context.Email, "http://www.w3.org/2001/XMLSchema#string", Options.AuthenticationType));
}

await Options.Provider.Authenticated(context);

context.Properties = properties;

await Options.Provider.Authenticated(context);

return new AuthenticationTicket(context.Identity, context.Properties);
}
catch (Exception ex)
Expand Down

0 comments on commit 6fcee95

Please sign in to comment.