我是 laravel 的新手,我想制作护照配置路线以获取访问令牌。所以我不想发送如下信息:
$response = $http->post('http://your-app.com/oauth/token', [
'form_params' => [
'grant_type' => 'password',
'client_id' => 'client-id',
'client_secret' => 'client-secret',
'username' => 'taylor@laravel.com',
'password' => 'my-password',
'scope' => '*',
],
]);
我只想发送:
$response = $http->post('http://your-app.com/oauth/token', [
'form_params' => [
'client_id' => 'client-id',
'client_secret' => 'client-secret',
'password' => 'my-password',
],
]);
那么我能做些什么来配置它们呢?非常感谢。