是否需要清除Google OAuth缓存?

时间:2019-01-08 10:30:16

标签: php oauth callback google-oauth

我使用Hybridauth设置了Google OAuth,它可以在我的开发文件夹中使用,例如http://example.com/dev和回调位于http://example.com/dev/callback.php

现在我想将dev文件夹移至生产文件夹,例如http:/example.com/backend,并且回调已更改为http://example.com/backend/callback.php

我从Google控制台更改了授权重定向URI,但登录后Google保留了旧的回调链接。

是否需要从Google清除缓存或等待一段时间让Google更新更改?

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

1 个答案:

答案 0 :(得分:1)

抱歉,我在弹出窗口中调用旧脚本时出现了粗心的错误

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;
        }
相关问题