Skip to content

Commit

Permalink
#13, use validated principal claims
Browse files Browse the repository at this point in the history
  • Loading branch information
jpda authored and josephdecock committed Jan 20, 2025
1 parent a4f690d commit dbf9357
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public override async Task TokenValidated(TokenValidatedContext context)
Scheme = context.Scheme.Name,
ProofToken = proofToken,
AccessToken = at,
AccessTokenClaims = parsedToken?.Claims ?? [],
AccessTokenClaims = context.Principal?.Claims ?? parsedToken?.Claims ?? [],
Method = context.HttpContext.Request.Method,
Url = context.HttpContext.Request.Scheme + "://" + context.HttpContext.Request.Host + context.HttpContext.Request.PathBase + context.HttpContext.Request.Path
});
Expand Down

0 comments on commit dbf9357

Please sign in to comment.