社交名媛Google redirect_uri_mismatch [英] Socialite Google redirect_uri_mismatch

查看:194
本文介绍了社交名媛Google redirect_uri_mismatch的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用socialite与google登录,我的facebook登录正常,因此我的google应用中出现了问题,有帮助!!!

I am trying to login with google using socialite , my facebook login works fine so the problem in my google app, any help!!!

 'google' => [
    'client_id' =>      'app-key',
    'client_secret' =>  'app-secret',
    'redirect' =>       'http://www.shoptizer.com/callback/google',
],

推荐答案

我找到了此链接 https://blog.damirmiladinov.com/laravel/laravel-5.2-socialite-google-login.html

在本教程中:

有时会发生Google花费一些时间来应用客户端配置的情况,如果您收到一条错误消息redirect_uri_missmatch,请等待几分钟,它应该可以正常工作.

Occasionally it happens that google require some time to apply client configuration If you get an error message redirect_uri_missmatch wait couple of minutes and it should work normally.

还可以通过以下方式更改重定向uri:

Also change the redirect uri by:

'google' => [
   'client_id' =>      'app-key',
   'client_secret' =>  'app-secret',
   'redirect' =>       'https://www.shoptizer.com/callback/google',
],

如果您的应用是由https提供的,则必须在Google api和重定向回调中匹配您的http方案.

If your app is provided by https you must match your http scheme on google api and on your redirect callback.

这篇关于社交名媛Google redirect_uri_mismatch的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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