{"action":"created","issue":{"url":"https://api.github.com/repos/wingrunr21/omniauth-amazon/issues/7","labels_url":"https://api.github.com/repos/wingrunr21/omniauth-amazon/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/wingrunr21/omniauth-amazon/issues/7/comments","events_url":"https://api.github.com/repos/wingrunr21/omniauth-amazon/issues/7/events","html_url":"https://github.com/wingrunr21/omniauth-amazon/issues/7","id":58486440,"number":7,"title":"Fix for missing required parameter : code","user":{"login":"russau","id":167762,"avatar_url":"https://avatars.githubusercontent.com/u/167762?v=3","gravatar_id":"","url":"https://api.github.com/users/russau","html_url":"https://github.com/russau","followers_url":"https://api.github.com/users/russau/followers","following_url":"https://api.github.com/users/russau/following{/other_user}","gists_url":"https://api.github.com/users/russau/gists{/gist_id}","starred_url":"https://api.github.com/users/russau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russau/subscriptions","organizations_url":"https://api.github.com/users/russau/orgs","repos_url":"https://api.github.com/users/russau/repos","events_url":"https://api.github.com/users/russau/events{/privacy}","received_events_url":"https://api.github.com/users/russau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-22T02:01:46Z","updated_at":"2015-02-23T01:25:49Z","closed_at":null,"body":"I recently integrated this gem and was stuck for a while with an error: \r\n\r\n```\r\ninvalid_request: The request is missing a required parameter : code {\"error\":\"invalid_request\",\"error_description\":\"The request is missing a required parameter : code\"}\r\n```\r\nJust figured out my mistake.  I followed the \"login with amazon\" instructions at https://login.amazon.com/website.  Which takes you through an *Implicit Grant* to obtain a token.  omni-auth is expecting an Authorization Code Grant.  Easily fixed, ensure you pass configure the correct repsonse type option.\r\n\r\n``` javascript\r\n    options = { scope : 'profile', response_type : 'code' };\r\n```\r\n\r\nMore information on the different workflows in the [developer guide](https://images-na.ssl-images-amazon.com/images/G/01/lwa/dev/docs/website-developer-guide._TTH_.pdf).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wingrunr21/omniauth-amazon/issues/comments/75477971","html_url":"https://github.com/wingrunr21/omniauth-amazon/issues/7#issuecomment-75477971","issue_url":"https://api.github.com/repos/wingrunr21/omniauth-amazon/issues/7","id":75477971,"user":{"login":"russau","id":167762,"avatar_url":"https://avatars.githubusercontent.com/u/167762?v=3","gravatar_id":"","url":"https://api.github.com/users/russau","html_url":"https://github.com/russau","followers_url":"https://api.github.com/users/russau/followers","following_url":"https://api.github.com/users/russau/following{/other_user}","gists_url":"https://api.github.com/users/russau/gists{/gist_id}","starred_url":"https://api.github.com/users/russau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russau/subscriptions","organizations_url":"https://api.github.com/users/russau/orgs","repos_url":"https://api.github.com/users/russau/repos","events_url":"https://api.github.com/users/russau/events{/privacy}","received_events_url":"https://api.github.com/users/russau/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T01:25:49Z","updated_at":"2015-02-23T01:25:49Z","body":"response_type I typed into my view myself.  Is there a way omni-auth can do this for me?"}}