本文介绍了{“错误”:“ 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
发布评论