{"action":"created","issue":{"url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues/84","labels_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues/84/comments","events_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues/84/events","html_url":"https://github.com/AFNetworking/AFOAuth2Manager/issues/84","id":52711005,"number":84,"title":"It's not possible to retrieve secondary data from the authentication request","user":{"login":"blixt","id":158591,"avatar_url":"https://avatars.githubusercontent.com/u/158591?v=3","gravatar_id":"","url":"https://api.github.com/users/blixt","html_url":"https://github.com/blixt","followers_url":"https://api.github.com/users/blixt/followers","following_url":"https://api.github.com/users/blixt/following{/other_user}","gists_url":"https://api.github.com/users/blixt/gists{/gist_id}","starred_url":"https://api.github.com/users/blixt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blixt/subscriptions","organizations_url":"https://api.github.com/users/blixt/orgs","repos_url":"https://api.github.com/users/blixt/repos","events_url":"https://api.github.com/users/blixt/events{/privacy}","received_events_url":"https://api.github.com/users/blixt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-23T03:25:47Z","updated_at":"2015-04-22T17:18:45Z","closed_at":null,"body":"It's not uncommon to include additional data in a successful OAuth response. How come only the token is accessible in the success handler?\r\n\r\nI realize this won't be easy to change for backwards compatibility reasons, but if a major version is coming up, it would be nice to have the block signatures (mostly) match all the standard AFNetworking ones by simply adding the `AFHTTPRequestOperation *operation` parameter in front. While the second argument to `success` would still be `AFOAuthCredential`, the developer can choose to extract extra parameters from the `AFHTTPRequestOperation` instance's `responseObject` property.\r\n\r\nIn the meantime, perhaps something could be done to support accessing the additional parameters?"},"comment":{"url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues/comments/95270920","html_url":"https://github.com/AFNetworking/AFOAuth2Manager/issues/84#issuecomment-95270920","issue_url":"https://api.github.com/repos/AFNetworking/AFOAuth2Manager/issues/84","id":95270920,"user":{"login":"OmarPedraza","id":1285953,"avatar_url":"https://avatars.githubusercontent.com/u/1285953?v=3","gravatar_id":"","url":"https://api.github.com/users/OmarPedraza","html_url":"https://github.com/OmarPedraza","followers_url":"https://api.github.com/users/OmarPedraza/followers","following_url":"https://api.github.com/users/OmarPedraza/following{/other_user}","gists_url":"https://api.github.com/users/OmarPedraza/gists{/gist_id}","starred_url":"https://api.github.com/users/OmarPedraza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmarPedraza/subscriptions","organizations_url":"https://api.github.com/users/OmarPedraza/orgs","repos_url":"https://api.github.com/users/OmarPedraza/repos","events_url":"https://api.github.com/users/OmarPedraza/events{/privacy}","received_events_url":"https://api.github.com/users/OmarPedraza/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T17:18:45Z","updated_at":"2015-04-22T17:18:45Z","body":"+1\r\n\r\nThe OAuth2 server I'm working with returns a bad request status when user or password are invalid and includes a description error in the responseObject, so I need to access to the responseObject to give the user more information about the error."}}