Skip to content

Commit ec0f472

Browse files
author
VIZRTINT\pew
committed
Fix exception when refreshing oauth2 token
1 parent be1d1e3 commit ec0f472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/RabbitMQ.Client.OAuth2/OAuth2Client.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ private Dictionary<string, string> BuildRefreshParameters(IToken token)
309309
Dictionary<string, string> dict = BuildRequestParameters();
310310
dict[GRANT_TYPE] = REFRESH_TOKEN;
311311

312-
if (_scope != null)
312+
if (_scope != null && !dict.ContainsKey(SCOPE))
313313
{
314314
dict.Add(SCOPE, _scope);
315315
}

0 commit comments

Comments
 (0)