duanlie3187 2019-01-08 10:30
浏览 124

too long

I set up the Google OAuth with Hybridauth and it works from my development folder e.g. http://example.com/dev and callback is located at http://example.com/dev/callback.php

Now I want to move the dev folder to the production folder e.g. http:/example.com/backend and callback is changed to http://example.com/backend/callback.php

I changed the Authorized redirect URIs from Google console, but Google keeps the old callback link when I do log in.

Is it necessary to clear cache from Google or wait for an amount of time to let Google update the changes?

$config = [ 'callback' => 'example.com/backedn/callback.php',
            'providers' => [ 'Google' => [ 'enabled' => true, 
                             'keys' => [ 'id' => 'xxxxx.apps.googleusercontent.com', 
                                         'secret' => 'xxxxxxx', ], 
                             'scope' => 'email', ], ], ]; 
  • 写回答

1条回答 默认 最新

  • donglu3184 2019-01-08 13:03
    关注

    Sorry for my careless mistake as I call the old script from the popup

    function auth_popup( provider ){
                // replace 'path/to/hybridauth' with the real path to this script
                var authWindow = window.open('http://example.com//dev/callback.php?provider='+provider, 'authWindow', 'width=600,height=400,scrollbars=yes');
                return false;
            }
    
    评论

报告相同问题?

悬赏问题

  • ¥15 虚拟机打包apk出现错误
  • ¥30 最小化遗憾贪心算法上界
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝