【发布时间】:2022-03-03 18:24:35
【问题描述】:
使用的包是: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
],
这可能是什么问题?
【问题讨论】:
-
这里有什么更新吗?
标签: laravel laravel-passport passport-google-oauth