Skip to content

Commit

Permalink
[IDP-1218] add a custom user agent header to the mfa client
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Sep 12, 2024
1 parent 56f53db commit 8ab7509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/common/components/MfaApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace common\components;

use GuzzleHttp\Client as GuzzleClient;
use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\ConnectException;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Exception\ServerException;
use Psr\Http\Message\ResponseInterface;
Expand Down Expand Up @@ -55,6 +55,7 @@ public function __construct(string $apiBaseUrl, $apiKey, $apiSecret)
'X-MFA-APIKey' => $apiKey,
'X-MFA-APISecret' => $apiSecret,
'Content-type' => 'application/json',
'User-Agent' => 'idp-id-broker',
];

$this->client = new GuzzleClient([
Expand Down Expand Up @@ -118,7 +119,6 @@ public function validateTotp(string $uuid, string $code): bool
}



/**
* @param array $additionalHeaders
* @return array
Expand Down

0 comments on commit 8ab7509

Please sign in to comment.