From 207afce82cb015752bf2f0c4d3f6f596b3db8cc7 Mon Sep 17 00:00:00 2001 From: Eugene Myazin Date: Wed, 9 Jan 2019 14:49:06 +0300 Subject: [PATCH] Small auth fix --- composer.json | 2 +- src/Admitad/Api/Api.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index b99cf45..872354b 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "admitad/api", + "name": "meniam/admitad-php-api", "type": "library", "description": "Admitad api library", "keywords": ["admitad", "api"], diff --git a/src/Admitad/Api/Api.php b/src/Admitad/Api/Api.php index d0cb39e..8cfd4bf 100644 --- a/src/Admitad/Api/Api.php +++ b/src/Admitad/Api/Api.php @@ -35,7 +35,7 @@ public function authorizeByPassword($clientId, $clientSecret, $scope, $username, { $query = array( 'client_id' => $clientId, - 'grant_type' => 'password', + 'grant_type' => 'client_credentials', 'username' => $username, 'password' => $password, 'scope' => $scope