{"action":"created","issue":{"url":"https://api.github.com/repos/adonisjs/adonis-ally/issues/50","repository_url":"https://api.github.com/repos/adonisjs/adonis-ally","labels_url":"https://api.github.com/repos/adonisjs/adonis-ally/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/adonisjs/adonis-ally/issues/50/comments","events_url":"https://api.github.com/repos/adonisjs/adonis-ally/issues/50/events","html_url":"https://github.com/adonisjs/adonis-ally/pull/50","id":303962503,"number":50,"title":"Add method to get user from access token","user":{"login":"Artessan","id":4217243,"avatar_url":"https://avatars1.githubusercontent.com/u/4217243?v=4","gravatar_id":"","url":"https://api.github.com/users/Artessan","html_url":"https://github.com/Artessan","followers_url":"https://api.github.com/users/Artessan/followers","following_url":"https://api.github.com/users/Artessan/following{/other_user}","gists_url":"https://api.github.com/users/Artessan/gists{/gist_id}","starred_url":"https://api.github.com/users/Artessan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artessan/subscriptions","organizations_url":"https://api.github.com/users/Artessan/orgs","repos_url":"https://api.github.com/users/Artessan/repos","events_url":"https://api.github.com/users/Artessan/events{/privacy}","received_events_url":"https://api.github.com/users/Artessan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-09T19:59:40Z","updated_at":"2018-03-20T15:44:51Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/adonisjs/adonis-ally/pulls/50","html_url":"https://github.com/adonisjs/adonis-ally/pull/50","diff_url":"https://github.com/adonisjs/adonis-ally/pull/50.diff","patch_url":"https://github.com/adonisjs/adonis-ally/pull/50.patch"},"body":"The idea is that the user can be obtained from an access token for Oauth2 and from access token and secret access key for Oauth 1, this actions are valid mostly for apis when the api client handle the ouath authorization but the api need access the user data.\r\n\r\n- add OAuth2  getUserByAccessToken method to handle api  oauth\r\n- add OAuth1  getUserByAccessTokenAndSecret method to handle api  oauth\r\n- add logic to OAuth1 drivers to handle getUserByTokenAndSecret method calls\r\n- add OAuth2 drivers logic to handle getUserFromToken method call\r\n"},"comment":{"url":"https://api.github.com/repos/adonisjs/adonis-ally/issues/comments/374646931","html_url":"https://github.com/adonisjs/adonis-ally/pull/50#issuecomment-374646931","issue_url":"https://api.github.com/repos/adonisjs/adonis-ally/issues/50","id":374646931,"user":{"login":"Artessan","id":4217243,"avatar_url":"https://avatars1.githubusercontent.com/u/4217243?v=4","gravatar_id":"","url":"https://api.github.com/users/Artessan","html_url":"https://github.com/Artessan","followers_url":"https://api.github.com/users/Artessan/followers","following_url":"https://api.github.com/users/Artessan/following{/other_user}","gists_url":"https://api.github.com/users/Artessan/gists{/gist_id}","starred_url":"https://api.github.com/users/Artessan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artessan/subscriptions","organizations_url":"https://api.github.com/users/Artessan/orgs","repos_url":"https://api.github.com/users/Artessan/repos","events_url":"https://api.github.com/users/Artessan/events{/privacy}","received_events_url":"https://api.github.com/users/Artessan/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T15:44:51Z","updated_at":"2018-03-20T15:44:51Z","author_association":"NONE","body":"Hey, I made the changes that you requested, I hope the pr be good, let me know what you think.\r\n\r\nThank!"}}
{"actor":{"display_login":"Artessan"}}