Angularjs Popup没有关闭社交登录

时间:2016-03-02 17:27:18

标签: javascript angularjs social

我正在使用 satellizer 包实施社交登录。 我面临的问题是有时弹出窗口没有关闭,在弹出窗口中打开登录页面。 这是我做的配置。

$authProvider.google({
            clientId: CONFIG[ENV]['GOOGLE_APP_ID'],
            url: CONFIG[ENV]['GOOGLE_URL'],
            requiredUrlParams: ['scope'],
            optionalUrlParams: ['display'],
            redirectUri: window.location.origin || window.location.protocol + '//' + window.location.host + '/',
            scope: ['profile', 'email'],
            scopePrefix: 'openid',
            scopeDelimiter: ' ',
            display: 'popup',
            type: '2.0',
            popupOptions: { width: 452, height: 633 }
        });

        $authProvider.facebook({
            clientId: CONFIG[ENV]['FB_APP_ID'],
            name: 'facebook',
            url: CONFIG[ENV]['FB_URL'],
            redirectUri: CONFIG[ENV]['FB_REDIRECT_URI'],
            requiredUrlParams: ['display', 'scope'],
            scope: ['email'],
            scopeDelimiter: ',',
            display: 'popup',
            type: '2.0',
            popupOptions: { width: 580, height: 400 }
        });

可能是什么问题?

0 个答案:

没有答案
相关问题