使用的包是:https ://github.com/coderello/laravel-passport-social-grant
我已经按照以下提供的教程进行了所有预期的更改: https ://medium.com/@hivokas/api-authentication-via-social-networks-for-your-laravel-application-d81cfc185e60
网址:
http://myurl.com/oauth/token
输出:
{
"error": "invalid_credentials",
"error_description": "The user credentials were incorrect.",
"message": "The user credentials were incorrect."
}
与邮递员一起使用的参数如下:
grant_type' => 'social', // static 'social' value
'client_id' => $clientId, // client id
'client_secret' => $clientSecret, // client secret
'provider' => $providerName, // name of provider (e.g., 'facebook', 'google' etc.)
'access_token' => $providerAccessToken, // access token issued by specified provider
],
这里有什么问题?