Skip to content

Commit

Permalink
Fix missing claims for OpenID code flow. (#14686)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarblow authored Nov 14, 2023
1 parent ba97ebc commit 3c5b6b1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@ private async Task<IActionResult> ExchangeAuthorizationCodeOrRefreshTokenGrantTy
if (user != null)
{
principal = await service.CreatePrincipalAsync(user);
// Copy the granted scopes and resources from the original authorization code/refresh token principal
principal.SetScopes(info.Principal.GetScopes());
principal.SetResources(await GetResourcesAsync(info.Principal.GetScopes()));
}
}

Expand Down

0 comments on commit 3c5b6b1

Please sign in to comment.