{"action":"created","issue":{"url":"https://api.github.com/repos/amkirwan/ember-oauth2/issues/18","labels_url":"https://api.github.com/repos/amkirwan/ember-oauth2/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/amkirwan/ember-oauth2/issues/18/comments","events_url":"https://api.github.com/repos/amkirwan/ember-oauth2/issues/18/events","html_url":"https://github.com/amkirwan/ember-oauth2/pull/18","id":72028143,"number":18,"title":"Adds support for Authorization Code grant (response_type=\"code\")","user":{"login":"derekbedwards","id":3720022,"avatar_url":"https://avatars.githubusercontent.com/u/3720022?v=3","gravatar_id":"","url":"https://api.github.com/users/derekbedwards","html_url":"https://github.com/derekbedwards","followers_url":"https://api.github.com/users/derekbedwards/followers","following_url":"https://api.github.com/users/derekbedwards/following{/other_user}","gists_url":"https://api.github.com/users/derekbedwards/gists{/gist_id}","starred_url":"https://api.github.com/users/derekbedwards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekbedwards/subscriptions","organizations_url":"https://api.github.com/users/derekbedwards/orgs","repos_url":"https://api.github.com/users/derekbedwards/repos","events_url":"https://api.github.com/users/derekbedwards/events{/privacy}","received_events_url":"https://api.github.com/users/derekbedwards/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"amkirwan","id":112228,"avatar_url":"https://avatars.githubusercontent.com/u/112228?v=3","gravatar_id":"","url":"https://api.github.com/users/amkirwan","html_url":"https://github.com/amkirwan","followers_url":"https://api.github.com/users/amkirwan/followers","following_url":"https://api.github.com/users/amkirwan/following{/other_user}","gists_url":"https://api.github.com/users/amkirwan/gists{/gist_id}","starred_url":"https://api.github.com/users/amkirwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amkirwan/subscriptions","organizations_url":"https://api.github.com/users/amkirwan/orgs","repos_url":"https://api.github.com/users/amkirwan/repos","events_url":"https://api.github.com/users/amkirwan/events{/privacy}","received_events_url":"https://api.github.com/users/amkirwan/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-04-30T00:52:33Z","updated_at":"2015-08-04T15:42:43Z","closed_at":"2015-08-04T15:42:43Z","pull_request":{"url":"https://api.github.com/repos/amkirwan/ember-oauth2/pulls/18","html_url":"https://github.com/amkirwan/ember-oauth2/pull/18","diff_url":"https://github.com/amkirwan/ember-oauth2/pull/18.diff","patch_url":"https://github.com/amkirwan/ember-oauth2/pull/18.patch"},"body":"Existing module supports strictly token-based (Implicit Grant) authorization flow, making it incompatible with Linkedin, Stripe and several other OAuth providers.  This PR adds support for Authorization Code grants, allowing the developer to define a success handler that sends the code to a backend (which may then retrieve an access token using a combination of client id, client secret and the authorization code.)\r\n\r\nDefaults to \"token\" response_type for backwards compatibility.  Developer can enable Authorization Code grant by setting providerConfig responseType to \"code\".  When Authorization Code grant is enabled, the auth success handler will receive the code instead of the state object."},"comment":{"url":"https://api.github.com/repos/amkirwan/ember-oauth2/issues/comments/127654186","html_url":"https://github.com/amkirwan/ember-oauth2/pull/18#issuecomment-127654186","issue_url":"https://api.github.com/repos/amkirwan/ember-oauth2/issues/18","id":127654186,"user":{"login":"amkirwan","id":112228,"avatar_url":"https://avatars.githubusercontent.com/u/112228?v=3","gravatar_id":"","url":"https://api.github.com/users/amkirwan","html_url":"https://github.com/amkirwan","followers_url":"https://api.github.com/users/amkirwan/followers","following_url":"https://api.github.com/users/amkirwan/following{/other_user}","gists_url":"https://api.github.com/users/amkirwan/gists{/gist_id}","starred_url":"https://api.github.com/users/amkirwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amkirwan/subscriptions","organizations_url":"https://api.github.com/users/amkirwan/orgs","repos_url":"https://api.github.com/users/amkirwan/repos","events_url":"https://api.github.com/users/amkirwan/events{/privacy}","received_events_url":"https://api.github.com/users/amkirwan/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T15:42:43Z","updated_at":"2015-08-04T15:42:43Z","body":"I went ahead and wrote the tests for the feature and added the update with a few changes"}}