{“error”:“invalid_client”,“message”:“Client authen

2020-04-23 06:30发布

enter image description here enter image description here

I completed these steps

  • Installed laravel/passport.
  • Created a website user.
  • Generated passport keys PHP artisan passport: install
  • Generated client_id and client_secret using PHP artisan passport:client
  • Added redirection and callback routes in web.php
  • Authorized the user and got the final access token.

    client information step in the action console. find my application in the home app but when I log in to the web page show client authentication failed.

Thanks in advance for the help

1条回答
啃猪蹄的小仙女
2楼-- · 2020-04-23 07:14

The link you provide for the "redirect" URI must be the one that Google has specified. You're redirecting to Google's servers with the information - not your own server.

This URI should be in the form

https://oauth-redirect.googleusercontent.com/r/YOUR_PROJECT_ID

where YOUR_PROJECT_ID is replaced with the project ID for your Action.

查看更多
登录 后发表回答