Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #43 from hybrid2102/main
Browse files Browse the repository at this point in the history
added Scope mapping in RefreshAccessTokenAsync
  • Loading branch information
josephdecock authored Nov 27, 2023
2 parents 4fce219 + afafc64 commit c2aa94b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@ public async Task<UserToken> RefreshAccessTokenAsync(
};

request.Options.TryAdd(ClientCredentialsTokenManagementDefaults.TokenRequestParametersOptionsName, parameters);


if (!string.IsNullOrWhiteSpace(parameters.Scope))
{
request.Scope = parameters.Scope;
}

if (!string.IsNullOrEmpty(parameters.Resource))
{
request.Resource.Add(parameters.Resource);
Expand Down

0 comments on commit c2aa94b

Please sign in to comment.