{"action":"created","issue":{"url":"https://api.github.com/repos/codebender/omniauth-fitbit-oauth2/issues/4","labels_url":"https://api.github.com/repos/codebender/omniauth-fitbit-oauth2/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/codebender/omniauth-fitbit-oauth2/issues/4/comments","events_url":"https://api.github.com/repos/codebender/omniauth-fitbit-oauth2/issues/4/events","html_url":"https://github.com/codebender/omniauth-fitbit-oauth2/issues/4","id":120596555,"number":4,"title":"Invalid Redirect URI","user":{"login":"wvance","id":5695201,"avatar_url":"https://avatars.githubusercontent.com/u/5695201?v=3","gravatar_id":"","url":"https://api.github.com/users/wvance","html_url":"https://github.com/wvance","followers_url":"https://api.github.com/users/wvance/followers","following_url":"https://api.github.com/users/wvance/following{/other_user}","gists_url":"https://api.github.com/users/wvance/gists{/gist_id}","starred_url":"https://api.github.com/users/wvance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvance/subscriptions","organizations_url":"https://api.github.com/users/wvance/orgs","repos_url":"https://api.github.com/users/wvance/repos","events_url":"https://api.github.com/users/wvance/events{/privacy}","received_events_url":"https://api.github.com/users/wvance/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-05T23:52:33Z","updated_at":"2015-12-06T22:58:02Z","closed_at":null,"body":"I am receiving an error after requesting authorization: \r\n\r\nDeveloper information: invalid_request - Invalid redirect_uri parameter value\r\n\r\nAfter reading the Fitbit api docs, it says a required field is the redirect_ui?\r\n\r\nMy code is as follows: \r\n\r\nconfig.omniauth :fitbit_oauth2, ENV[\"fitbit_client_id\"], ENV[\"fitbit_secret\"],\r\n    scope: 'activity heartrate location nutrition profile sleep settings social weight', \r\n    redirect_uri: 'http://lvh.me:3000'\r\n\r\nMy callback url on Fitbit is also: http://lvh.me:3000\r\n\r\nAny suggestions? :D "},"comment":{"url":"https://api.github.com/repos/codebender/omniauth-fitbit-oauth2/issues/comments/162360415","html_url":"https://github.com/codebender/omniauth-fitbit-oauth2/issues/4#issuecomment-162360415","issue_url":"https://api.github.com/repos/codebender/omniauth-fitbit-oauth2/issues/4","id":162360415,"user":{"login":"wvance","id":5695201,"avatar_url":"https://avatars.githubusercontent.com/u/5695201?v=3","gravatar_id":"","url":"https://api.github.com/users/wvance","html_url":"https://github.com/wvance","followers_url":"https://api.github.com/users/wvance/followers","following_url":"https://api.github.com/users/wvance/following{/other_user}","gists_url":"https://api.github.com/users/wvance/gists{/gist_id}","starred_url":"https://api.github.com/users/wvance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvance/subscriptions","organizations_url":"https://api.github.com/users/wvance/orgs","repos_url":"https://api.github.com/users/wvance/repos","events_url":"https://api.github.com/users/wvance/events{/privacy}","received_events_url":"https://api.github.com/users/wvance/received_events","type":"User","site_admin":false},"created_at":"2015-12-06T22:58:02Z","updated_at":"2015-12-06T22:58:02Z","body":"I looked into the API and you are correct it is optional, however after looking at my fitibt app callback, it only has one 'Callback URL' which is \"http://lvh.me:3000/\". This is also the page of which I am requesting authorization. \r\nI have removed the 'redirect_uri' from my config file, however the error was still the same. \r\nThanks for the help!"}}