{"action":"created","issue":{"url":"https://api.github.com/repos/Krisa/Salesforce-Workbench/issues/5","repository_url":"https://api.github.com/repos/Krisa/Salesforce-Workbench","labels_url":"https://api.github.com/repos/Krisa/Salesforce-Workbench/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Krisa/Salesforce-Workbench/issues/5/comments","events_url":"https://api.github.com/repos/Krisa/Salesforce-Workbench/issues/5/events","html_url":"https://github.com/Krisa/Salesforce-Workbench/pull/5","id":335787229,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3Mzk4NjEx","number":5,"title":"using Chrome.Cookies api to get SID, which requires to be in Backgrou…","user":{"login":"shintynash","id":30459387,"node_id":"MDQ6VXNlcjMwNDU5Mzg3","avatar_url":"https://avatars2.githubusercontent.com/u/30459387?v=4","gravatar_id":"","url":"https://api.github.com/users/shintynash","html_url":"https://github.com/shintynash","followers_url":"https://api.github.com/users/shintynash/followers","following_url":"https://api.github.com/users/shintynash/following{/other_user}","gists_url":"https://api.github.com/users/shintynash/gists{/gist_id}","starred_url":"https://api.github.com/users/shintynash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shintynash/subscriptions","organizations_url":"https://api.github.com/users/shintynash/orgs","repos_url":"https://api.github.com/users/shintynash/repos","events_url":"https://api.github.com/users/shintynash/events{/privacy}","received_events_url":"https://api.github.com/users/shintynash/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-26T12:04:28Z","updated_at":"2018-06-27T13:31:17Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/Krisa/Salesforce-Workbench/pulls/5","html_url":"https://github.com/Krisa/Salesforce-Workbench/pull/5","diff_url":"https://github.com/Krisa/Salesforce-Workbench/pull/5.diff","patch_url":"https://github.com/Krisa/Salesforce-Workbench/pull/5.patch"},"body":"…nd.JS\r\n\r\nTBH, this the first time I have commited in GitHUB and done a pull request! Please let me know if I did anything funky\r\n\r\nAndrew"},"comment":{"url":"https://api.github.com/repos/Krisa/Salesforce-Workbench/issues/comments/400672130","html_url":"https://github.com/Krisa/Salesforce-Workbench/pull/5#issuecomment-400672130","issue_url":"https://api.github.com/repos/Krisa/Salesforce-Workbench/issues/5","id":400672130,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDY3MjEzMA==","user":{"login":"Krisa","id":1253866,"node_id":"MDQ6VXNlcjEyNTM4NjY=","avatar_url":"https://avatars0.githubusercontent.com/u/1253866?v=4","gravatar_id":"","url":"https://api.github.com/users/Krisa","html_url":"https://github.com/Krisa","followers_url":"https://api.github.com/users/Krisa/followers","following_url":"https://api.github.com/users/Krisa/following{/other_user}","gists_url":"https://api.github.com/users/Krisa/gists{/gist_id}","starred_url":"https://api.github.com/users/Krisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krisa/subscriptions","organizations_url":"https://api.github.com/users/Krisa/orgs","repos_url":"https://api.github.com/users/Krisa/repos","events_url":"https://api.github.com/users/Krisa/events{/privacy}","received_events_url":"https://api.github.com/users/Krisa/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T13:31:17Z","updated_at":"2018-06-27T13:31:17Z","author_association":"OWNER","body":"Well, you're right, it might be complicated... and breaks when Salesforce changes something. A better idea may be to still look for the '.salesforce.com' domain but instead of trying to match the right domain, we could look at the value of the `sid` which includes the unique Org Id. The org id corresponds to the 15 first digit of the `sid`, or everything before the exclamation mark `!`. I think it would be a more bullet proofed solution.\r\n"}}
{"actor":{"display_login":"Krisa"}}