mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 05:28:15 -05:00
freshdesk now requires "Basic" to be appended to api key (#2786)
This commit is contained in:
parent
a4d637a9b3
commit
a4cb6e0900
@ -147,7 +147,7 @@ public class FreshdeskController : Controller
|
|||||||
{
|
{
|
||||||
var freshdeskAuthkey = Convert.ToBase64String(Encoding.UTF8.GetBytes($"{_billingSettings.FreshdeskApiKey}:X"));
|
var freshdeskAuthkey = Convert.ToBase64String(Encoding.UTF8.GetBytes($"{_billingSettings.FreshdeskApiKey}:X"));
|
||||||
var httpClient = _httpClientFactory.CreateClient("FreshdeskApi");
|
var httpClient = _httpClientFactory.CreateClient("FreshdeskApi");
|
||||||
request.Headers.Add("Authorization", freshdeskAuthkey);
|
request.Headers.Add("Authorization", $"Basic {freshdeskAuthkey}");
|
||||||
var response = await httpClient.SendAsync(request);
|
var response = await httpClient.SendAsync(request);
|
||||||
if (response.StatusCode != System.Net.HttpStatusCode.TooManyRequests || retriedCount > 3)
|
if (response.StatusCode != System.Net.HttpStatusCode.TooManyRequests || retriedCount > 3)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user