{"action":"created","issue":{"url":"https://api.github.com/repos/unlock-protocol/unlock/issues/1755","repository_url":"https://api.github.com/repos/unlock-protocol/unlock","labels_url":"https://api.github.com/repos/unlock-protocol/unlock/issues/1755/labels{/name}","comments_url":"https://api.github.com/repos/unlock-protocol/unlock/issues/1755/comments","events_url":"https://api.github.com/repos/unlock-protocol/unlock/issues/1755/events","html_url":"https://github.com/unlock-protocol/unlock/pull/1755","id":415330214,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU2ODQyMzg4","number":1755,"title":"rework lock parsing to use URL, add origin url parameter","user":{"login":"cellog","id":98250,"node_id":"MDQ6VXNlcjk4MjUw","avatar_url":"https://avatars2.githubusercontent.com/u/98250?v=4","gravatar_id":"","url":"https://api.github.com/users/cellog","html_url":"https://github.com/cellog","followers_url":"https://api.github.com/users/cellog/followers","following_url":"https://api.github.com/users/cellog/following{/other_user}","gists_url":"https://api.github.com/users/cellog/gists{/gist_id}","starred_url":"https://api.github.com/users/cellog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cellog/subscriptions","organizations_url":"https://api.github.com/users/cellog/orgs","repos_url":"https://api.github.com/users/cellog/repos","events_url":"https://api.github.com/users/cellog/events{/privacy}","received_events_url":"https://api.github.com/users/cellog/received_events","type":"User","site_admin":false},"labels":[{"id":1220683659,"node_id":"MDU6TGFiZWwxMjIwNjgzNjU5","url":"https://api.github.com/repos/unlock-protocol/unlock/labels/Splitting%20Unlock-app","name":"Splitting Unlock-app","color":"e0604a","default":false},{"id":1238319077,"node_id":"MDU6TGFiZWwxMjM4MzE5MDc3","url":"https://api.github.com/repos/unlock-protocol/unlock/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"state":"open","locked":false,"assignee":{"login":"cellog","id":98250,"node_id":"MDQ6VXNlcjk4MjUw","avatar_url":"https://avatars2.githubusercontent.com/u/98250?v=4","gravatar_id":"","url":"https://api.github.com/users/cellog","html_url":"https://github.com/cellog","followers_url":"https://api.github.com/users/cellog/followers","following_url":"https://api.github.com/users/cellog/following{/other_user}","gists_url":"https://api.github.com/users/cellog/gists{/gist_id}","starred_url":"https://api.github.com/users/cellog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cellog/subscriptions","organizations_url":"https://api.github.com/users/cellog/orgs","repos_url":"https://api.github.com/users/cellog/repos","events_url":"https://api.github.com/users/cellog/events{/privacy}","received_events_url":"https://api.github.com/users/cellog/received_events","type":"User","site_admin":false},"assignees":[{"login":"cellog","id":98250,"node_id":"MDQ6VXNlcjk4MjUw","avatar_url":"https://avatars2.githubusercontent.com/u/98250?v=4","gravatar_id":"","url":"https://api.github.com/users/cellog","html_url":"https://github.com/cellog","followers_url":"https://api.github.com/users/cellog/followers","following_url":"https://api.github.com/users/cellog/following{/other_user}","gists_url":"https://api.github.com/users/cellog/gists{/gist_id}","starred_url":"https://api.github.com/users/cellog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cellog/subscriptions","organizations_url":"https://api.github.com/users/cellog/orgs","repos_url":"https://api.github.com/users/cellog/repos","events_url":"https://api.github.com/users/cellog/events{/privacy}","received_events_url":"https://api.github.com/users/cellog/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/unlock-protocol/unlock/milestones/3","html_url":"https://github.com/unlock-protocol/unlock/milestone/3","labels_url":"https://api.github.com/repos/unlock-protocol/unlock/milestones/3/labels","id":3982533,"node_id":"MDk6TWlsZXN0b25lMzk4MjUzMw==","number":3,"title":"Version 0+","description":"This version include all bug fixes and features related to v0 which were not fully completed.","creator":{"login":"julien51","id":17735,"node_id":"MDQ6VXNlcjE3NzM1","avatar_url":"https://avatars0.githubusercontent.com/u/17735?v=4","gravatar_id":"","url":"https://api.github.com/users/julien51","html_url":"https://github.com/julien51","followers_url":"https://api.github.com/users/julien51/followers","following_url":"https://api.github.com/users/julien51/following{/other_user}","gists_url":"https://api.github.com/users/julien51/gists{/gist_id}","starred_url":"https://api.github.com/users/julien51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julien51/subscriptions","organizations_url":"https://api.github.com/users/julien51/orgs","repos_url":"https://api.github.com/users/julien51/repos","events_url":"https://api.github.com/users/julien51/events{/privacy}","received_events_url":"https://api.github.com/users/julien51/received_events","type":"User","site_admin":false},"open_issues":60,"closed_issues":97,"state":"open","created_at":"2019-01-17T20:26:14Z","updated_at":"2019-02-27T23:44:38Z","due_on":"2019-03-01T08:00:00Z","closed_at":null},"comments":0,"created_at":"2019-02-27T21:15:23Z","updated_at":"2019-02-28T00:33:01Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/unlock-protocol/unlock/pulls/1755","html_url":"https://github.com/unlock-protocol/unlock/pull/1755","diff_url":"https://github.com/unlock-protocol/unlock/pull/1755.diff","patch_url":"https://github.com/unlock-protocol/unlock/pull/1755.patch"},"body":"# Description\r\n\r\nIn preparation for the fix of #1752, this PR introduces a new query parameter to the paywall route parsing, `origin`. This is used to pass the `window.origin` of the 3rd party site loading our paywall through the `paywall.min.js` script, so that we can securely `postMessage` to the parent window and be confident that only it will receive the message.\r\n\r\nFollow-up PRs will enable passing origin to the iframe from `paywall.min.js` and then using the parameter in the `usePostMessage` and `useListenForPostMessage` hooks.\r\n\r\n# Issues\r\n\r\n<!-- This PR should fix or reference at least one existing issue ID. Add or delete as appropriate. -->\r\nRefs #1752\r\n\r\n# Checklist:\r\n\r\n- [X] 1 PR, 1 purpose: my Pull Request applies to a single purpose\r\n  - [ ] This PR only contains configuration changes (package.json, etc.)\r\n  - [X] This PR only contains code changes (if configuration changes are required, do a separate PR first, then re-base)\r\n- [X] My code follows the style guidelines of this project, including naming conventions\r\n- [ ] I have commented my code, particularly in hard-to-understand areas\r\n- [X] I have added tests that prove my fix is effective or that my feature works\r\n- [ ] If my code adds or changes components, I have written corresponding stories with Storybook\r\n- [X] I have performed a self-review of my own code\r\n- [ ] If my code involves visual changes, I am adding applicable screenshots to this thread\r\n\r\n<!--\r\nPS: [Read how to write the perfect pull request](https://blog.github.com/2015-01-21-how-to-write-the-perfect-pull-request/)\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/unlock-protocol/unlock/issues/comments/468087571","html_url":"https://github.com/unlock-protocol/unlock/pull/1755#issuecomment-468087571","issue_url":"https://api.github.com/repos/unlock-protocol/unlock/issues/1755","id":468087571,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2ODA4NzU3MQ==","user":{"login":"cellog","id":98250,"node_id":"MDQ6VXNlcjk4MjUw","avatar_url":"https://avatars2.githubusercontent.com/u/98250?v=4","gravatar_id":"","url":"https://api.github.com/users/cellog","html_url":"https://github.com/cellog","followers_url":"https://api.github.com/users/cellog/followers","following_url":"https://api.github.com/users/cellog/following{/other_user}","gists_url":"https://api.github.com/users/cellog/gists{/gist_id}","starred_url":"https://api.github.com/users/cellog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cellog/subscriptions","organizations_url":"https://api.github.com/users/cellog/orgs","repos_url":"https://api.github.com/users/cellog/repos","events_url":"https://api.github.com/users/cellog/events{/privacy}","received_events_url":"https://api.github.com/users/cellog/received_events","type":"User","site_admin":false},"created_at":"2019-02-28T00:33:01Z","updated_at":"2019-02-28T00:33:01Z","author_association":"COLLABORATOR","body":"this is ready for final pass, @julien51 PTAL"}}
{"actor":{"display_login":"cellog"}}