Compare commits
No commits in common. "main" and "8.2.0" have entirely different histories.
@ -31,7 +31,7 @@ public class JwtTokenManagerService(JwtTokenManagerOptions options, IHttpClientF
|
|||||||
new ("scopes", string.Join(" ", _scopes))
|
new ("scopes", string.Join(" ", _scopes))
|
||||||
};
|
};
|
||||||
|
|
||||||
if (false == options.IsCredentialsInHeader)
|
if (options.IsCredentialsInHeader)
|
||||||
{
|
{
|
||||||
formContentKeyValues.AddRange([
|
formContentKeyValues.AddRange([
|
||||||
new KeyValuePair<string, string>("client_id", options.ClientId),
|
new KeyValuePair<string, string>("client_id", options.ClientId),
|
||||||
@ -45,9 +45,8 @@ public class JwtTokenManagerService(JwtTokenManagerOptions options, IHttpClientF
|
|||||||
Content = formContent
|
Content = formContent
|
||||||
};
|
};
|
||||||
|
|
||||||
if (options.IsCredentialsInHeader)
|
if (false == options.IsCredentialsInHeader)
|
||||||
{
|
{
|
||||||
|
|
||||||
var credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes($"{options.ClientId}:{options.ClientSecret}"));
|
var credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes($"{options.ClientId}:{options.ClientSecret}"));
|
||||||
request.Headers.Authorization = new AuthenticationHeaderValue("Basic", credentials);
|
request.Headers.Authorization = new AuthenticationHeaderValue("Basic", credentials);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user