I am trying to develop a restful api using token for authentication using laravel 5.3 . I have also added laravel passport and I thought it will help me build the api faster. The resource I would like to give through api is common to all users , nothing specific to the user. So figured I should use grant type : client credentials. I couldn't find the any help about this grant type in laravel documentation
https://github.com/laravel/passport/pull/34/files this link shows the client credential grant type is added to laravel passport . but when I try to give grant type as client credential
$http = new \GuzzleHttp\Client;
$response = $http->post('http://site.dev/oauth/token', [
'form_params' => [
'grant_type' => 'client_credentials',
'client_id' => config('api.client_id'),
'client_secret' => config('api.client_secret'),
'redirect_uri' => config('api.redirect_uri'),
],
]);
it gives error in grant type used.