{"action":"created","issue":{"url":"https://api.github.com/repos/MrSwitch/hello.js/issues/192","labels_url":"https://api.github.com/repos/MrSwitch/hello.js/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/MrSwitch/hello.js/issues/192/comments","events_url":"https://api.github.com/repos/MrSwitch/hello.js/issues/192/events","html_url":"https://github.com/MrSwitch/hello.js/issues/192","id":56534848,"number":192,"title":"Yahoo via OAuth2 - Solved","user":{"login":"Rah1x","id":841857,"avatar_url":"https://avatars.githubusercontent.com/u/841857?v=3","gravatar_id":"","url":"https://api.github.com/users/Rah1x","html_url":"https://github.com/Rah1x","followers_url":"https://api.github.com/users/Rah1x/followers","following_url":"https://api.github.com/users/Rah1x/following{/other_user}","gists_url":"https://api.github.com/users/Rah1x/gists{/gist_id}","starred_url":"https://api.github.com/users/Rah1x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rah1x/subscriptions","organizations_url":"https://api.github.com/users/Rah1x/orgs","repos_url":"https://api.github.com/users/Rah1x/repos","events_url":"https://api.github.com/users/Rah1x/events{/privacy}","received_events_url":"https://api.github.com/users/Rah1x/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-04T14:43:53Z","updated_at":"2015-02-06T08:05:48Z","closed_at":null,"body":"Hi,\r\n\r\nI have done it myself for Yahoo via its new OAuth2 (https://developer.yahoo.com/oauth2/guide/#implicit-grant-flow-for-client-side-apps). \r\n\r\nThe Authentication is working just fine, and can get you the access token. However, the Contact API is not working as Yahoo server is not returning the correct `Access-Control-Allow-Origin` header cause the browser to block the `Cross-Origin` xhr call.\r\n\r\nSo the only solution was to take the Access Token and follow the rest via CURL (where it works just fine).\r\n\r\n**CONCEPTS:**\r\n1) Creating API Access keys from Yahoo.com will require you to insert `.com` in your localhost. So make a vhost that has `.com`\r\n\r\n2) Yahoo's OAuth server will not accept such large URL and hence return an error the details of which are not so listed anywhere. So except for `state>callback` parameter, rest all are passed to the processing page via Session and reinserted into hello.js upon successful authentication.\r\n"},"comment":{"url":"https://api.github.com/repos/MrSwitch/hello.js/issues/comments/73200199","html_url":"https://github.com/MrSwitch/hello.js/issues/192#issuecomment-73200199","issue_url":"https://api.github.com/repos/MrSwitch/hello.js/issues/192","id":73200199,"user":{"login":"Rah1x","id":841857,"avatar_url":"https://avatars.githubusercontent.com/u/841857?v=3","gravatar_id":"","url":"https://api.github.com/users/Rah1x","html_url":"https://github.com/Rah1x","followers_url":"https://api.github.com/users/Rah1x/followers","following_url":"https://api.github.com/users/Rah1x/following{/other_user}","gists_url":"https://api.github.com/users/Rah1x/gists{/gist_id}","starred_url":"https://api.github.com/users/Rah1x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rah1x/subscriptions","organizations_url":"https://api.github.com/users/Rah1x/orgs","repos_url":"https://api.github.com/users/Rah1x/repos","events_url":"https://api.github.com/users/Rah1x/events{/privacy}","received_events_url":"https://api.github.com/users/Rah1x/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T08:05:48Z","updated_at":"2015-02-06T08:05:48Z","body":"ok.. well the reason I used OAuth2.0 instead was that I didnt want to use the proxy.. Otherwise, OAuth1 via proxy would have just worked fine...\r\n\r\nAlso, tell me which branch do you want me to create the pull request?\r\n\r\nThanks.."}}