{“错误”:“ invalid

编程入门 行业动态 更新时间:2024-10-20 16:45:56
本文介绍了{“错误”:“ 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的格式应为

oauth-redirect.googleusercontent/r/YOUR_PROJECT_ID

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

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

更多推荐

{“错误”:“ invalid

本文发布于:2023-11-12 04:11:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580482.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   invalid

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!