{"action":"created","issue":{"url":"https://api.github.com/repos/mulesoft/js-client-oauth2/issues/28","repository_url":"https://api.github.com/repos/mulesoft/js-client-oauth2","labels_url":"https://api.github.com/repos/mulesoft/js-client-oauth2/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/mulesoft/js-client-oauth2/issues/28/comments","events_url":"https://api.github.com/repos/mulesoft/js-client-oauth2/issues/28/events","html_url":"https://github.com/mulesoft/js-client-oauth2/issues/28","id":178199411,"number":28,"title":"Can't Make Sense of Doc","user":{"login":"omayhemo","id":2934415,"avatar_url":"https://avatars.githubusercontent.com/u/2934415?v=3","gravatar_id":"","url":"https://api.github.com/users/omayhemo","html_url":"https://github.com/omayhemo","followers_url":"https://api.github.com/users/omayhemo/followers","following_url":"https://api.github.com/users/omayhemo/following{/other_user}","gists_url":"https://api.github.com/users/omayhemo/gists{/gist_id}","starred_url":"https://api.github.com/users/omayhemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omayhemo/subscriptions","organizations_url":"https://api.github.com/users/omayhemo/orgs","repos_url":"https://api.github.com/users/omayhemo/repos","events_url":"https://api.github.com/users/omayhemo/events{/privacy}","received_events_url":"https://api.github.com/users/omayhemo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-09-20T22:42:12Z","updated_at":"2016-09-21T20:33:27Z","closed_at":null,"body":"Code Flow Authorization\r\n\r\nAfter I receive the callback, with the code in the body, how am I supposed to get the token?  Your documentation is a bit vague in this area with only the following syntax as explanation.\r\n\r\n`githubAuth.code.getToken(req.url)`\r\n\r\nWhere does the code go?  When I add the code in options I get a weird error unable to process Uri."},"comment":{"url":"https://api.github.com/repos/mulesoft/js-client-oauth2/issues/comments/248734294","html_url":"https://github.com/mulesoft/js-client-oauth2/issues/28#issuecomment-248734294","issue_url":"https://api.github.com/repos/mulesoft/js-client-oauth2/issues/28","id":248734294,"user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T20:33:27Z","updated_at":"2016-09-21T20:33:27Z","body":"Thanks. I'm taking a look, but I don't have an account to actually test it. I can't see anywhere to sign up either, so guessing it's closed unless I buy something. Reading the documentation, it certainly appears to be using standard OAuth 2.0 - see http://docs.smartthings.com/en/latest/smartapp-web-services-developers-guide/tutorial-part2.html#get-an-access-token.\r\n\r\n> When SmartThings redirects back to our application after authorizing, it passes a `code` parameter on the URL.\r\n\r\nDo you have some proxying going on in the middle that obscures the direct redirect? Perhaps someone is doing the URL parsing for you and giving you a code?"}}
{"actor":{"display_login":"blakeembrey"}}