{"action":"opened","issue":{"url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/413","repository_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter","labels_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/413/comments","events_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/413/events","html_url":"https://github.com/jadjoubran/laravel5-angular-material-starter/issues/413","id":180464148,"number":413,"title":"Authenticating with Facebook and Satellizer","user":{"login":"CaptainChainsaw","id":3913259,"avatar_url":"https://avatars.githubusercontent.com/u/3913259?v=3","gravatar_id":"","url":"https://api.github.com/users/CaptainChainsaw","html_url":"https://github.com/CaptainChainsaw","followers_url":"https://api.github.com/users/CaptainChainsaw/followers","following_url":"https://api.github.com/users/CaptainChainsaw/following{/other_user}","gists_url":"https://api.github.com/users/CaptainChainsaw/gists{/gist_id}","starred_url":"https://api.github.com/users/CaptainChainsaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaptainChainsaw/subscriptions","organizations_url":"https://api.github.com/users/CaptainChainsaw/orgs","repos_url":"https://api.github.com/users/CaptainChainsaw/repos","events_url":"https://api.github.com/users/CaptainChainsaw/events{/privacy}","received_events_url":"https://api.github.com/users/CaptainChainsaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-01T16:01:23Z","updated_at":"2016-10-01T16:01:23Z","closed_at":null,"body":"* **I'm submitting a ...**\r\n- [ ] bug report\r\n- [ ] feature request\r\n- [* ] support request\r\n- [ ] other (Please specify)\r\n\r\n\r\n* **Provide information & explanation**\r\n\r\nI am trying to authenticate and login using satellizer.  I'm new to Laravel and have some angular experience so please bear with me.  I created an app on Facebook to authenticate with and followed the instructions as best as I could.  I have a \"sign in with facebook\" button on my login page, clicking it does nothing and there are no errors in the console.  I expect I've not configured this correctly.  Could you please help me set this up?\r\n\r\nAlso how can I determine which routes should only be available to authenticated users?\r\n\r\nOn the facebook app I've set:\r\n\r\nValid OAuth redirect URIs: http://locahost:8000\r\nSite URL: http://locahost:8000\r\n\r\n\r\n* **Got code samples?**\r\nMake sure to use 3 backticks (and javascript or php after it to show your code) [More info](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code)\r\nAlso make sure to click on the *Preview* button to double check your code formatting\r\n\r\nMy login page:\r\n\r\n        <md-content class=\"Page-container\">\r\n            <div class=\"Login-formContainer\" layout=\"column\" layout-align=\"center center\">\r\n\r\n               <h1 class=\"md-headline\">Log in to your account</h1>\r\n\r\n             <login-form></login-form>\r\n            <button ng-click=\"authenticate('facebook')\">Sign in with Facebook</button>\r\n         </div>\r\n      </md-content>\r\n\r\n\r\n\r\n\r\n\r\n`    \r\n\r\n\r\n     export function SatellizerConfig($authProvider) {\r\n\t'ngInject';\r\n\r\n\t$authProvider.httpInterceptor = function() {\r\n\t\treturn true;\r\n\t}\r\n\r\n\t$authProvider.loginUrl = '/api/auth/login';\r\n\t$authProvider.signupUrl = '/api/auth/register';\r\n\t$authProvider.tokenRoot = 'data';//compensates success response macro\r\n\r\n\t$authProvider.facebook({\r\n\t  clientId: '317593668600609',   // app id\r\n      responseType: 'token',\r\n\t  name: 'facebook',\r\n\t  url: '/auth/facebook',\r\n\t  authorizationEndpoint: 'https://www.facebook.com/v2.5/dialog/oauth',\r\n\t  redirectUri: window.location.origin + '/',\r\n\t  requiredUrlParams: ['display', 'scope'],\r\n\t  scope: ['email'],\r\n\t  scopeDelimiter: ',',\r\n\t  display: 'popup',\r\n\t  oauthType: '2.0',\r\n\t  popupOptions: { width: 580, height: 400 }\r\n\t});\r\n     }\r\n\r\n* **Laravel & Angular version:** 3.2.0\r\n3.3"}}
{"actor":{"display_login":"CaptainChainsaw"}}