{"action":"created","issue":{"url":"https://api.github.com/repos/sahat/satellizer/issues/716","labels_url":"https://api.github.com/repos/sahat/satellizer/issues/716/labels{/name}","comments_url":"https://api.github.com/repos/sahat/satellizer/issues/716/comments","events_url":"https://api.github.com/repos/sahat/satellizer/issues/716/events","html_url":"https://github.com/sahat/satellizer/issues/716","id":127417940,"number":716,"title":"oauth2 is only returning code as response, passed userData is not present ","user":{"login":"saqueib","id":6937224,"avatar_url":"https://avatars.githubusercontent.com/u/6937224?v=3","gravatar_id":"","url":"https://api.github.com/users/saqueib","html_url":"https://github.com/saqueib","followers_url":"https://api.github.com/users/saqueib/followers","following_url":"https://api.github.com/users/saqueib/following{/other_user}","gists_url":"https://api.github.com/users/saqueib/gists{/gist_id}","starred_url":"https://api.github.com/users/saqueib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saqueib/subscriptions","organizations_url":"https://api.github.com/users/saqueib/orgs","repos_url":"https://api.github.com/users/saqueib/repos","events_url":"https://api.github.com/users/saqueib/events{/privacy}","received_events_url":"https://api.github.com/users/saqueib/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-19T10:44:56Z","updated_at":"2016-01-21T10:03:49Z","closed_at":null,"body":"@sahat thanks for great library, I have used it in many apps. \r\n\r\nI am facing a problem where `FitBit OAuth2` is not giving back my `userData` object value, here is the configuration object.\r\n\r\n```js\r\n       $authProvider.oauth2({\r\n\t      name: 'fitbit',\r\n\t      url: 'http://localhost:3999?fitbit=1',\r\n\t      clientId: 'xxxx',\r\n\t      requiredUrlParams: ['display', 'scope'],\r\n\t      scopeDelimiter: ' ',\r\n\t      scope : ['activity', 'nutrition', 'heartrate', 'location'],\r\n\t      redirectUri: 'http://domain.com/api/v1/service-connected/4',\r\n\t      authorizationEndpoint: 'https://www.fitbit.com/oauth2/authorize',\r\n\t    });\r\n```\r\n\r\nand in my controller I am doing \r\n\r\n```js\r\n       $auth.authenticate('fitbit', { userId : 12})\r\n         .then(function(res) {\r\n          console.log( \"success\", res);\r\n        })\r\n        .catch(function(res) {\r\n          console.log( \"error\", res);\r\n       });\r\n```\r\n\r\nI need to send `userId` to server so I can link the account with user. I have many providers to add.\r\n\r\nI also wanted to know is it possible to change `OAuth2` configuration value from controller like \r\n\r\n```js\r\n.controller('authCtrl', function($scope, $auth) {\r\n     $authProvider.oauth2({\r\n\t      name: 'fitbit',\r\n\t      redirectUri: 'http://domain.com/api/v1/service-connected/4', \r\n              ...\r\n              // dynamically set these properties since i have 15 custom providers \r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/sahat/satellizer/issues/comments/173523056","html_url":"https://github.com/sahat/satellizer/issues/716#issuecomment-173523056","issue_url":"https://api.github.com/repos/sahat/satellizer/issues/716","id":173523056,"user":{"login":"antoinehoriot","id":6170050,"avatar_url":"https://avatars.githubusercontent.com/u/6170050?v=3","gravatar_id":"","url":"https://api.github.com/users/antoinehoriot","html_url":"https://github.com/antoinehoriot","followers_url":"https://api.github.com/users/antoinehoriot/followers","following_url":"https://api.github.com/users/antoinehoriot/following{/other_user}","gists_url":"https://api.github.com/users/antoinehoriot/gists{/gist_id}","starred_url":"https://api.github.com/users/antoinehoriot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoinehoriot/subscriptions","organizations_url":"https://api.github.com/users/antoinehoriot/orgs","repos_url":"https://api.github.com/users/antoinehoriot/repos","events_url":"https://api.github.com/users/antoinehoriot/events{/privacy}","received_events_url":"https://api.github.com/users/antoinehoriot/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T10:03:49Z","updated_at":"2016-01-21T10:03:49Z","body":"Hi! I'm very new to satellizer so I might be doing something wrong but I'm trying to set up a login with Patreon button (OAuth2) and the only thing I'm able to get is the response code. \r\n\r\nI'm running a simple Angularfire stack hosted on a Apache server."}}