{“错误”:“ invalid_client”,“消息”:“客户端认证失败”} [英] {"error":"invalid_client","message":"Client authentication failed"}

查看:1248
本文介绍了{“错误”:“ invalid_client”,“消息”:“客户端认证失败”}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我完成了这些步骤


  • 安装了laravel / passport。

  • 创建了网站用户。

  • 生成的护照密钥PHP工匠护照:安装

  • 使用PHP工匠护照生成的client_id和client_secret:client

  • 在web.php中添加了重定向和回调路由

  • 授权用户并获得最终访问令牌。

  • 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

推荐答案

您为重定向 URI提供的链接必须是Google指定的链接。您正在使用信息重定向到Google的服务器,而不是您自己的服务器。

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.

此URI的格式应为

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

其中 YOUR_PROJECT_ID 替换为您的操作的项目ID。

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

这篇关于{“错误”:“ invalid_client”,“消息”:“客户端认证失败”}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆