add test for creating auth tocken for an app using impersonation api

This commit is contained in:
Niraj Acharya
2025-01-09 15:03:37 +05:45
parent 1f537b57fb
commit d601cb1d6d
4 changed files with 111 additions and 11 deletions
@@ -61,7 +61,7 @@ class AuthAppHelper {
* @param string $baseUrl
* @param string $user
* @param string $password
* @param string $expiration
* @param array $params
*
* @return ResponseInterface
*/
@@ -69,9 +69,10 @@ class AuthAppHelper {
string $baseUrl,
string $user,
string $password,
string $expiration
array $params,
): ResponseInterface {
$url = $baseUrl . self::getAuthAppEndpoint() . "?expiry=$expiration";
$url = $baseUrl . self::getAuthAppEndpoint() . "?"
. http_build_query($params);
return HttpRequestHelper::sendRequest(
$url,
null,