Skip to content

Commit

Permalink
update pkce
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyf19 committed Apr 20, 2021
1 parent 9e4214b commit cff5123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.Identity.Web/TokenAcquisition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public async Task AddAccountToCacheFromAuthorizationCodeAsync(
{
var application = GetOrBuildConfidentialClientApplication();

context.Properties.Items.TryGetValue(OAuthConstants.CodeVerifierKey, out string? codeVerifier);
context.TokenEndpointRequest.Parameters.TryGetValue(OAuthConstants.CodeVerifierKey, out string? codeVerifier);
// Do not share the access token with ASP.NET Core otherwise ASP.NET will cache it and will not send the OAuth 2.0 request in
// case a further call to AcquireTokenByAuthorizationCodeAsync in the future is required for incremental consent (getting a code requesting more scopes)
// Share the ID token though
Expand Down

0 comments on commit cff5123

Please sign in to comment.