{"action":"created","issue":{"url":"https://api.github.com/repos/aerogear/aerogear-cordova-oauth2/issues/11","labels_url":"https://api.github.com/repos/aerogear/aerogear-cordova-oauth2/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/aerogear/aerogear-cordova-oauth2/issues/11/comments","events_url":"https://api.github.com/repos/aerogear/aerogear-cordova-oauth2/issues/11/events","html_url":"https://github.com/aerogear/aerogear-cordova-oauth2/pull/11","id":59186994,"number":11,"title":"Added a method to retrieve an Oauth2 Access Token using Google Play Services","user":{"login":"bleathem","id":265649,"avatar_url":"https://avatars.githubusercontent.com/u/265649?v=3","gravatar_id":"","url":"https://api.github.com/users/bleathem","html_url":"https://github.com/bleathem","followers_url":"https://api.github.com/users/bleathem/followers","following_url":"https://api.github.com/users/bleathem/following{/other_user}","gists_url":"https://api.github.com/users/bleathem/gists{/gist_id}","starred_url":"https://api.github.com/users/bleathem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bleathem/subscriptions","organizations_url":"https://api.github.com/users/bleathem/orgs","repos_url":"https://api.github.com/users/bleathem/repos","events_url":"https://api.github.com/users/bleathem/events{/privacy}","received_events_url":"https://api.github.com/users/bleathem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-02-27T04:11:18Z","updated_at":"2015-03-11T18:25:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aerogear/aerogear-cordova-oauth2/pulls/11","html_url":"https://github.com/aerogear/aerogear-cordova-oauth2/pull/11","diff_url":"https://github.com/aerogear/aerogear-cordova-oauth2/pull/11.diff","patch_url":"https://github.com/aerogear/aerogear-cordova-oauth2/pull/11.patch"},"body":"This PR adds a method to the oauth2 cordova plugin enabling android applications to request an Oauth2 access token using one of the accounts authorized on the device.  The Google play Services API used is an Intent/Activity based one, and so we receive the access token via the cordova plugin's #onActivityResult method.\r\n\r\nWhile this intent could have been initiated via an Aerogear authz module, the token still would have been returned via the #onActivityResult method, and the Authz module would have no knowledge of neither the token, nor the account used.  For these reasons the functionality was implemented solely within this plugin. "},"comment":{"url":"https://api.github.com/repos/aerogear/aerogear-cordova-oauth2/issues/comments/78339475","html_url":"https://github.com/aerogear/aerogear-cordova-oauth2/pull/11#issuecomment-78339475","issue_url":"https://api.github.com/repos/aerogear/aerogear-cordova-oauth2/issues/11","id":78339475,"user":{"login":"edewit","id":51133,"avatar_url":"https://avatars.githubusercontent.com/u/51133?v=3","gravatar_id":"","url":"https://api.github.com/users/edewit","html_url":"https://github.com/edewit","followers_url":"https://api.github.com/users/edewit/followers","following_url":"https://api.github.com/users/edewit/following{/other_user}","gists_url":"https://api.github.com/users/edewit/gists{/gist_id}","starred_url":"https://api.github.com/users/edewit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edewit/subscriptions","organizations_url":"https://api.github.com/users/edewit/orgs","repos_url":"https://api.github.com/users/edewit/repos","events_url":"https://api.github.com/users/edewit/events{/privacy}","received_events_url":"https://api.github.com/users/edewit/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T18:25:18Z","updated_at":"2015-03-11T18:25:18Z","body":"with #17 merged we can fix merge this one as well right @bleathem ?"}}