Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 谷歌oauth卫星404错误_Javascript_Angularjs_Oauth_Satellizer - Fatal编程技术网

Javascript 谷歌oauth卫星404错误

Javascript 谷歌oauth卫星404错误,javascript,angularjs,oauth,satellizer,Javascript,Angularjs,Oauth,Satellizer,这是我的密码。我正在使用authenticate('google')。单击允许按钮后,我得到错误404。 我正在使用satellizer.js进行谷歌身份验证 如果你理解这个错误,请帮助我 浏览器中的错误 邮政404(未找到) 内部控制器 app.js中的我的代码 我得到了一个问题,实际上是在这个URL上找到一个post请求,你可以在你的server.js文件中添加一些配置,遵循这个给定的GIT-URL Object {data: "Cannot POST /auth/google↵", st

这是我的密码。我正在使用
authenticate('google')
。单击允许按钮后,我得到错误404。 我正在使用satellizer.js进行谷歌身份验证

如果你理解这个错误,请帮助我

浏览器中的错误 邮政404(未找到)

内部控制器

app.js中的我的代码


我得到了一个问题,实际上是在这个URL上找到一个post请求,你可以在你的
server.js
文件中添加一些配置,遵循这个给定的GIT-URL

Object {data: "Cannot POST /auth/google↵", status: 404, config: Object, statusText: "Not Found"}
 $scope.authenticate = function (provider) {
            $auth.link(provider)
                .then(function(response) {
                    // You have successfully linked an account.
                    console.log(response);
                })
                .catch(function(response) {
                    // Handle errors here.
                    console.log('----------error--------')
                    console.log(response);
                });
        };
$authProvider.google({
            clientId: 'xxxxxxxxxx2op4madn.apps.googleusercontent.com'
        });

        $authProvider.google({
            url: '/auth/google',
            authorizationEndpoint: 'https://accounts.google.com/o/oauth2/auth',
            redirectUri: window.location.origin || window.location.protocol + '//' + window.location.host,
            requiredUrlParams: ['scope'],
            optionalUrlParams: ['display'],
            scope: ['profile', 'email'],
            scopePrefix: 'openid',
            scopeDelimiter: ' ',
            display: 'popup',
            type: '2.0',
            popupOptions: {width: 452, height: 633}
        });