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

Respect explicitly passed scopes on refresh #43

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading