{"id":7518,"date":"2015-07-18T03:26:05","date_gmt":"2015-07-18T03:26:05","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/07\/18\/invalid_request-missing-authority-file-in-anguarjs-with-satellizer-open-source-projects-sahat-satellizer\/"},"modified":"2015-07-18T03:26:05","modified_gmt":"2015-07-18T03:26:05","slug":"invalid_request-missing-authority-file-in-anguarjs-with-satellizer-open-source-projects-sahat-satellizer","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/07\/18\/invalid_request-missing-authority-file-in-anguarjs-with-satellizer-open-source-projects-sahat-satellizer\/","title":{"rendered":"Invalid_request: Missing authority: file:\/\/ in AnguarJS with Satellizer-open source projects sahat\/satellizer"},"content":{"rendered":"<p>I am trying to use satellizer to authorize with a Google account. When I click login, a popup appears showing this:<\/p>\n<blockquote>\n<p><b>Invalid parameter<\/b><\/p>\n<p>Invalid parameter value for redirect_uri: Missing authority: file:\/\/<\/p>\n<p>Request Details:<\/p>\n<p>scope=openid profile email<\/p>\n<p>response_type=code<\/p>\n<p>redirect_uri=file:\/\/<\/p>\n<p>display=popup<\/p>\n<p>client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com<\/p>\n<\/blockquote>\n<p>What am I doing wrong?<\/p>\n<p><b>Update 1: My Source Code<\/b><\/p>\n<p><b><i>index.html<\/i><\/b><\/p>\n<pre><code>\n<\/code><\/pre>\n<p><b><i>app.js<\/i><\/b><\/p>\n<pre><code>.config(function($stateProvider, $urlRouterProvider,$authProvider) {\n     $authProvider.google({\n      clientId: 'xxxxxxxxxx.apps.googleusercontent.com'\n     });\n    $stateProvider\n    .state('app', {\n        url: \"\/app\",\n        abstract: true,\n        controller: 'AppController'\n    })\n    .state('login', {\n        url: \"\/login\",\n        templateUrl: \"views\/login.html\",\n        controller: 'LoginController'\n    });\n    $urlRouterProvider.otherwise('\/login');\n})\n<\/code><\/pre>\n<p>and <b><i>loginController.js<\/i><\/b><\/p>\n<pre><code>.controller('LoginController', function($scope,$auth) {\n    $scope.authenticate = function(provider) {\n      $auth.authenticate(provider);\n   };\n});\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I am trying to use satellizer to authorize with a Google account. When I click login, a popup appears showing this: Invalid parameter Invalid parameter value for redirect_uri: Missing authority: file:\/\/ Request Details: scope=openid profile email response_type=code redirect_uri=file:\/\/ display=popup client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com What am I doing wrong? Update 1: My Source Code index.html app.js .config(function($stateProvider, $urlRouterProvider,$authProvider) { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7518","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7518"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7518\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}