diff --git a/src/Duende.AccessTokenManagement.OpenIdConnect/UserTokenEndpointService.cs b/src/Duende.AccessTokenManagement.OpenIdConnect/UserTokenEndpointService.cs index 47037e4..f0173b4 100755 --- a/src/Duende.AccessTokenManagement.OpenIdConnect/UserTokenEndpointService.cs +++ b/src/Duende.AccessTokenManagement.OpenIdConnect/UserTokenEndpointService.cs @@ -69,7 +69,12 @@ public async Task 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);