{"action":"created","comment":{"url":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls/comments/62397155","id":62397155,"diff_hunk":"@@ -6,20 +6,18 @@\n \n {% block body %}\n <div>\n-    <form action=\"http://52.39.26.206:9000/authorize/\" id=\"authorize-form\">\n-        <input type=\"hidden\" name=\"client_id\" value=\"{{ oauth_config.client_id }}\" />\n+    <form action=\"{{ provider.authorize_url }}\" id=\"authorize-form\">\n+        <input type=\"hidden\" name=\"client_id\" value=\"app-demo\" />\n         <input type=\"hidden\" name=\"response_type\" value=\"code\" />\n         <input type=\"hidden\" name=\"scope\" value=\"patient/*.read offline_access\" />\n         <input type=\"hidden\" name=\"redirect_uri\" value=\"http://52.39.26.206:6543/authorized\" />\n         <input type=\"hidden\" name=\"state\" value=\"123\" />","path":"researchapp/templates/consent.jinja2","position":11,"original_position":11,"commit_id":"abaad8ea79f62762e8bc236fb636399f5f820fe9","original_commit_id":"abaad8ea79f62762e8bc236fb636399f5f820fe9","user":{"login":"jmandel","id":313089,"avatar_url":"https://avatars.githubusercontent.com/u/313089?v=3","gravatar_id":"","url":"https://api.github.com/users/jmandel","html_url":"https://github.com/jmandel","followers_url":"https://api.github.com/users/jmandel/followers","following_url":"https://api.github.com/users/jmandel/following{/other_user}","gists_url":"https://api.github.com/users/jmandel/gists{/gist_id}","starred_url":"https://api.github.com/users/jmandel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmandel/subscriptions","organizations_url":"https://api.github.com/users/jmandel/orgs","repos_url":"https://api.github.com/users/jmandel/repos","events_url":"https://api.github.com/users/jmandel/events{/privacy}","received_events_url":"https://api.github.com/users/jmandel/received_events","type":"User","site_admin":false},"body":"Eventually this needs to be a high entropy random value that the server component stores (and verifies after redirection  back to the app). ","created_at":"2016-05-06T22:03:40Z","updated_at":"2016-05-06T22:03:40Z","html_url":"https://github.com/sync-for-science/reference-research-app/pull/2#discussion_r62397155","pull_request_url":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls/comments/62397155"},"html":{"href":"https://github.com/sync-for-science/reference-research-app/pull/2#discussion_r62397155"},"pull_request":{"href":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls/2","id":69205438,"html_url":"https://github.com/sync-for-science/reference-research-app/pull/2","diff_url":"https://github.com/sync-for-science/reference-research-app/pull/2.diff","patch_url":"https://github.com/sync-for-science/reference-research-app/pull/2.patch","issue_url":"https://api.github.com/repos/sync-for-science/reference-research-app/issues/2","number":2,"state":"open","locked":false,"title":"Move Participant storage to sqlite database","user":{"login":"erikwiffin","id":502000,"avatar_url":"https://avatars.githubusercontent.com/u/502000?v=3","gravatar_id":"","url":"https://api.github.com/users/erikwiffin","html_url":"https://github.com/erikwiffin","followers_url":"https://api.github.com/users/erikwiffin/followers","following_url":"https://api.github.com/users/erikwiffin/following{/other_user}","gists_url":"https://api.github.com/users/erikwiffin/gists{/gist_id}","starred_url":"https://api.github.com/users/erikwiffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikwiffin/subscriptions","organizations_url":"https://api.github.com/users/erikwiffin/orgs","repos_url":"https://api.github.com/users/erikwiffin/repos","events_url":"https://api.github.com/users/erikwiffin/events{/privacy}","received_events_url":"https://api.github.com/users/erikwiffin/received_events","type":"User","site_admin":false},"body":"Also moves fhir and oauth URLs into the provider object.","created_at":"2016-05-06T20:26:04Z","updated_at":"2016-05-06T22:03:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a84791021eaddf989861488d0524ec8e39bdc27","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls/2/commits","review_comments_url":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls/2/comments","review_comment_url":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sync-for-science/reference-research-app/issues/2/comments","statuses_url":"https://api.github.com/repos/sync-for-science/reference-research-app/statuses/abaad8ea79f62762e8bc236fb636399f5f820fe9","head":{"label":"sync-for-science:feature/patient-database","ref":"feature/patient-database","sha":"abaad8ea79f62762e8bc236fb636399f5f820fe9","user":{"login":"sync-for-science","id":17785143,"avatar_url":"https://avatars.githubusercontent.com/u/17785143?v=3","gravatar_id":"","url":"https://api.github.com/users/sync-for-science","html_url":"https://github.com/sync-for-science","followers_url":"https://api.github.com/users/sync-for-science/followers","following_url":"https://api.github.com/users/sync-for-science/following{/other_user}","gists_url":"https://api.github.com/users/sync-for-science/gists{/gist_id}","starred_url":"https://api.github.com/users/sync-for-science/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sync-for-science/subscriptions","organizations_url":"https://api.github.com/users/sync-for-science/orgs","repos_url":"https://api.github.com/users/sync-for-science/repos","events_url":"https://api.github.com/users/sync-for-science/events{/privacy}","received_events_url":"https://api.github.com/users/sync-for-science/received_events","type":"Organization","site_admin":false},"repo":{"id":58082238,"name":"reference-research-app","full_name":"sync-for-science/reference-research-app","owner":{"login":"sync-for-science","id":17785143,"avatar_url":"https://avatars.githubusercontent.com/u/17785143?v=3","gravatar_id":"","url":"https://api.github.com/users/sync-for-science","html_url":"https://github.com/sync-for-science","followers_url":"https://api.github.com/users/sync-for-science/followers","following_url":"https://api.github.com/users/sync-for-science/following{/other_user}","gists_url":"https://api.github.com/users/sync-for-science/gists{/gist_id}","starred_url":"https://api.github.com/users/sync-for-science/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sync-for-science/subscriptions","organizations_url":"https://api.github.com/users/sync-for-science/orgs","repos_url":"https://api.github.com/users/sync-for-science/repos","events_url":"https://api.github.com/users/sync-for-science/events{/privacy}","received_events_url":"https://api.github.com/users/sync-for-science/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sync-for-science/reference-research-app","description":"","fork":false,"url":"https://api.github.com/repos/sync-for-science/reference-research-app","forks_url":"https://api.github.com/repos/sync-for-science/reference-research-app/forks","keys_url":"https://api.github.com/repos/sync-for-science/reference-research-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sync-for-science/reference-research-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sync-for-science/reference-research-app/teams","hooks_url":"https://api.github.com/repos/sync-for-science/reference-research-app/hooks","issue_events_url":"https://api.github.com/repos/sync-for-science/reference-research-app/issues/events{/number}","events_url":"https://api.github.com/repos/sync-for-science/reference-research-app/events","assignees_url":"https://api.github.com/repos/sync-for-science/reference-research-app/assignees{/user}","branches_url":"https://api.github.com/repos/sync-for-science/reference-research-app/branches{/branch}","tags_url":"https://api.github.com/repos/sync-for-science/reference-research-app/tags","blobs_url":"https://api.github.com/repos/sync-for-science/reference-research-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sync-for-science/reference-research-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sync-for-science/reference-research-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/sync-for-science/reference-research-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sync-for-science/reference-research-app/statuses/{sha}","languages_url":"https://api.github.com/repos/sync-for-science/reference-research-app/languages","stargazers_url":"https://api.github.com/repos/sync-for-science/reference-research-app/stargazers","contributors_url":"https://api.github.com/repos/sync-for-science/reference-research-app/contributors","subscribers_url":"https://api.github.com/repos/sync-for-science/reference-research-app/subscribers","subscription_url":"https://api.github.com/repos/sync-for-science/reference-research-app/subscription","commits_url":"https://api.github.com/repos/sync-for-science/reference-research-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/sync-for-science/reference-research-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/sync-for-science/reference-research-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/sync-for-science/reference-research-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/sync-for-science/reference-research-app/contents/{+path}","compare_url":"https://api.github.com/repos/sync-for-science/reference-research-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sync-for-science/reference-research-app/merges","archive_url":"https://api.github.com/repos/sync-for-science/reference-research-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sync-for-science/reference-research-app/downloads","issues_url":"https://api.github.com/repos/sync-for-science/reference-research-app/issues{/number}","pulls_url":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls{/number}","milestones_url":"https://api.github.com/repos/sync-for-science/reference-research-app/milestones{/number}","notifications_url":"https://api.github.com/repos/sync-for-science/reference-research-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sync-for-science/reference-research-app/labels{/name}","releases_url":"https://api.github.com/repos/sync-for-science/reference-research-app/releases{/id}","deployments_url":"https://api.github.com/repos/sync-for-science/reference-research-app/deployments","created_at":"2016-05-04T20:34:10Z","updated_at":"2016-05-04T20:34:31Z","pushed_at":"2016-05-06T21:53:38Z","git_url":"git://github.com/sync-for-science/reference-research-app.git","ssh_url":"git@github.com:sync-for-science/reference-research-app.git","clone_url":"https://github.com/sync-for-science/reference-research-app.git","svn_url":"https://github.com/sync-for-science/reference-research-app","homepage":null,"size":253,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"sync-for-science:master","ref":"master","sha":"e834163a83c0250f80f652aad902abe894890f87","user":{"login":"sync-for-science","id":17785143,"avatar_url":"https://avatars.githubusercontent.com/u/17785143?v=3","gravatar_id":"","url":"https://api.github.com/users/sync-for-science","html_url":"https://github.com/sync-for-science","followers_url":"https://api.github.com/users/sync-for-science/followers","following_url":"https://api.github.com/users/sync-for-science/following{/other_user}","gists_url":"https://api.github.com/users/sync-for-science/gists{/gist_id}","starred_url":"https://api.github.com/users/sync-for-science/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sync-for-science/subscriptions","organizations_url":"https://api.github.com/users/sync-for-science/orgs","repos_url":"https://api.github.com/users/sync-for-science/repos","events_url":"https://api.github.com/users/sync-for-science/events{/privacy}","received_events_url":"https://api.github.com/users/sync-for-science/received_events","type":"Organization","site_admin":false},"repo":{"id":58082238,"name":"reference-research-app","full_name":"sync-for-science/reference-research-app","owner":{"login":"sync-for-science","id":17785143,"avatar_url":"https://avatars.githubusercontent.com/u/17785143?v=3","gravatar_id":"","url":"https://api.github.com/users/sync-for-science","html_url":"https://github.com/sync-for-science","followers_url":"https://api.github.com/users/sync-for-science/followers","following_url":"https://api.github.com/users/sync-for-science/following{/other_user}","gists_url":"https://api.github.com/users/sync-for-science/gists{/gist_id}","starred_url":"https://api.github.com/users/sync-for-science/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sync-for-science/subscriptions","organizations_url":"https://api.github.com/users/sync-for-science/orgs","repos_url":"https://api.github.com/users/sync-for-science/repos","events_url":"https://api.github.com/users/sync-for-science/events{/privacy}","received_events_url":"https://api.github.com/users/sync-for-science/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sync-for-science/reference-research-app","description":"","fork":false,"url":"https://api.github.com/repos/sync-for-science/reference-research-app","forks_url":"https://api.github.com/repos/sync-for-science/reference-research-app/forks","keys_url":"https://api.github.com/repos/sync-for-science/reference-research-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sync-for-science/reference-research-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sync-for-science/reference-research-app/teams","hooks_url":"https://api.github.com/repos/sync-for-science/reference-research-app/hooks","issue_events_url":"https://api.github.com/repos/sync-for-science/reference-research-app/issues/events{/number}","events_url":"https://api.github.com/repos/sync-for-science/reference-research-app/events","assignees_url":"https://api.github.com/repos/sync-for-science/reference-research-app/assignees{/user}","branches_url":"https://api.github.com/repos/sync-for-science/reference-research-app/branches{/branch}","tags_url":"https://api.github.com/repos/sync-for-science/reference-research-app/tags","blobs_url":"https://api.github.com/repos/sync-for-science/reference-research-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sync-for-science/reference-research-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sync-for-science/reference-research-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/sync-for-science/reference-research-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sync-for-science/reference-research-app/statuses/{sha}","languages_url":"https://api.github.com/repos/sync-for-science/reference-research-app/languages","stargazers_url":"https://api.github.com/repos/sync-for-science/reference-research-app/stargazers","contributors_url":"https://api.github.com/repos/sync-for-science/reference-research-app/contributors","subscribers_url":"https://api.github.com/repos/sync-for-science/reference-research-app/subscribers","subscription_url":"https://api.github.com/repos/sync-for-science/reference-research-app/subscription","commits_url":"https://api.github.com/repos/sync-for-science/reference-research-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/sync-for-science/reference-research-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/sync-for-science/reference-research-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/sync-for-science/reference-research-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/sync-for-science/reference-research-app/contents/{+path}","compare_url":"https://api.github.com/repos/sync-for-science/reference-research-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sync-for-science/reference-research-app/merges","archive_url":"https://api.github.com/repos/sync-for-science/reference-research-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sync-for-science/reference-research-app/downloads","issues_url":"https://api.github.com/repos/sync-for-science/reference-research-app/issues{/number}","pulls_url":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls{/number}","milestones_url":"https://api.github.com/repos/sync-for-science/reference-research-app/milestones{/number}","notifications_url":"https://api.github.com/repos/sync-for-science/reference-research-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sync-for-science/reference-research-app/labels{/name}","releases_url":"https://api.github.com/repos/sync-for-science/reference-research-app/releases{/id}","deployments_url":"https://api.github.com/repos/sync-for-science/reference-research-app/deployments","created_at":"2016-05-04T20:34:10Z","updated_at":"2016-05-04T20:34:31Z","pushed_at":"2016-05-06T21:53:38Z","git_url":"git://github.com/sync-for-science/reference-research-app.git","ssh_url":"git@github.com:sync-for-science/reference-research-app.git","clone_url":"https://github.com/sync-for-science/reference-research-app.git","svn_url":"https://github.com/sync-for-science/reference-research-app","homepage":null,"size":253,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls/2"},"html":{"href":"https://github.com/sync-for-science/reference-research-app/pull/2"},"issue":{"href":"https://api.github.com/repos/sync-for-science/reference-research-app/issues/2"},"comments":{"href":"https://api.github.com/repos/sync-for-science/reference-research-app/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sync-for-science/reference-research-app/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/sync-for-science/reference-research-app/statuses/abaad8ea79f62762e8bc236fb636399f5f820fe9"}}}}