{"action":"created","comment":{"url":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls/comments/105233176","pull_request_review_id":26103055,"id":105233176,"diff_hunk":"@@ -1,16 +1,14 @@\n # Security And Authorization\n \n ```shell\n-CLIENT_ID=YOUR_APP_CLIENT_ID\n-CLIENT_SECRET=YOUR_APP_CLIENT_SECRET\n-BASIC_HEADER=`echo \"$CLIENT_ID:$CLIENT_SECRET\" | base64`","path":"source/includes/_authentication.md","position":6,"original_position":6,"commit_id":"dff825b97f3d5338dd78b80fa62b8a7165c56d31","original_commit_id":"dff825b97f3d5338dd78b80fa62b8a7165c56d31","user":{"login":"dixonwh","id":1307181,"avatar_url":"https://avatars3.githubusercontent.com/u/1307181?v=3","gravatar_id":"","url":"https://api.github.com/users/dixonwh","html_url":"https://github.com/dixonwh","followers_url":"https://api.github.com/users/dixonwh/followers","following_url":"https://api.github.com/users/dixonwh/following{/other_user}","gists_url":"https://api.github.com/users/dixonwh/gists{/gist_id}","starred_url":"https://api.github.com/users/dixonwh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dixonwh/subscriptions","organizations_url":"https://api.github.com/users/dixonwh/orgs","repos_url":"https://api.github.com/users/dixonwh/repos","events_url":"https://api.github.com/users/dixonwh/events{/privacy}","received_events_url":"https://api.github.com/users/dixonwh/received_events","type":"User","site_admin":false},"body":"If we're running this on Ubuntu we'll should use `base64 -w 0` to ensure that the data remains on a single line.\r\nThe problem though is that OS X's base64 does not support a \"-w\" argument","created_at":"2017-03-09T18:17:23Z","updated_at":"2017-03-09T18:17:23Z","html_url":"https://github.com/pokitdok/apidocs-v4/pull/218#discussion_r105233176","pull_request_url":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls/218","_links":{"self":{"href":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls/comments/105233176"},"html":{"href":"https://github.com/pokitdok/apidocs-v4/pull/218#discussion_r105233176"},"pull_request":{"href":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls/218"}}},"pull_request":{"url":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls/218","id":109974161,"html_url":"https://github.com/pokitdok/apidocs-v4/pull/218","diff_url":"https://github.com/pokitdok/apidocs-v4/pull/218.diff","patch_url":"https://github.com/pokitdok/apidocs-v4/pull/218.patch","issue_url":"https://api.github.com/repos/pokitdok/apidocs-v4/issues/218","number":218,"state":"open","locked":false,"title":"SUCCESS-117: Updating cURL authentication for multiple Platforms","user":{"login":"dixonwh","id":1307181,"avatar_url":"https://avatars3.githubusercontent.com/u/1307181?v=3","gravatar_id":"","url":"https://api.github.com/users/dixonwh","html_url":"https://github.com/dixonwh","followers_url":"https://api.github.com/users/dixonwh/followers","following_url":"https://api.github.com/users/dixonwh/following{/other_user}","gists_url":"https://api.github.com/users/dixonwh/gists{/gist_id}","starred_url":"https://api.github.com/users/dixonwh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dixonwh/subscriptions","organizations_url":"https://api.github.com/users/dixonwh/orgs","repos_url":"https://api.github.com/users/dixonwh/repos","events_url":"https://api.github.com/users/dixonwh/events{/privacy}","received_events_url":"https://api.github.com/users/dixonwh/received_events","type":"User","site_admin":false},"body":"This PR updates our cURL authentication example to utilize a script which will complete successfully on Darwin (OS X) and Linux variants such as Ubuntu. The general issue here is that the base64 and sed programs differ between these two platforms. This PR addresses that issue by cleaning up base64 output, if needed, with the tr program.","created_at":"2017-03-09T18:16:09Z","updated_at":"2017-03-09T18:17:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9fc5b4b8e81669d43b84615b2e1f1995736e812d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls/218/commits","review_comments_url":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls/218/comments","review_comment_url":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pokitdok/apidocs-v4/issues/218/comments","statuses_url":"https://api.github.com/repos/pokitdok/apidocs-v4/statuses/dff825b97f3d5338dd78b80fa62b8a7165c56d31","head":{"label":"pokitdok:SUCCESS-117","ref":"SUCCESS-117","sha":"dff825b97f3d5338dd78b80fa62b8a7165c56d31","user":{"login":"pokitdok","id":1810655,"avatar_url":"https://avatars2.githubusercontent.com/u/1810655?v=3","gravatar_id":"","url":"https://api.github.com/users/pokitdok","html_url":"https://github.com/pokitdok","followers_url":"https://api.github.com/users/pokitdok/followers","following_url":"https://api.github.com/users/pokitdok/following{/other_user}","gists_url":"https://api.github.com/users/pokitdok/gists{/gist_id}","starred_url":"https://api.github.com/users/pokitdok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokitdok/subscriptions","organizations_url":"https://api.github.com/users/pokitdok/orgs","repos_url":"https://api.github.com/users/pokitdok/repos","events_url":"https://api.github.com/users/pokitdok/events{/privacy}","received_events_url":"https://api.github.com/users/pokitdok/received_events","type":"Organization","site_admin":false},"repo":{"id":40563459,"name":"apidocs-v4","full_name":"pokitdok/apidocs-v4","owner":{"login":"pokitdok","id":1810655,"avatar_url":"https://avatars2.githubusercontent.com/u/1810655?v=3","gravatar_id":"","url":"https://api.github.com/users/pokitdok","html_url":"https://github.com/pokitdok","followers_url":"https://api.github.com/users/pokitdok/followers","following_url":"https://api.github.com/users/pokitdok/following{/other_user}","gists_url":"https://api.github.com/users/pokitdok/gists{/gist_id}","starred_url":"https://api.github.com/users/pokitdok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokitdok/subscriptions","organizations_url":"https://api.github.com/users/pokitdok/orgs","repos_url":"https://api.github.com/users/pokitdok/repos","events_url":"https://api.github.com/users/pokitdok/events{/privacy}","received_events_url":"https://api.github.com/users/pokitdok/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pokitdok/apidocs-v4","description":"Documentation for the PokitDok Platform APIs","fork":false,"url":"https://api.github.com/repos/pokitdok/apidocs-v4","forks_url":"https://api.github.com/repos/pokitdok/apidocs-v4/forks","keys_url":"https://api.github.com/repos/pokitdok/apidocs-v4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pokitdok/apidocs-v4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pokitdok/apidocs-v4/teams","hooks_url":"https://api.github.com/repos/pokitdok/apidocs-v4/hooks","issue_events_url":"https://api.github.com/repos/pokitdok/apidocs-v4/issues/events{/number}","events_url":"https://api.github.com/repos/pokitdok/apidocs-v4/events","assignees_url":"https://api.github.com/repos/pokitdok/apidocs-v4/assignees{/user}","branches_url":"https://api.github.com/repos/pokitdok/apidocs-v4/branches{/branch}","tags_url":"https://api.github.com/repos/pokitdok/apidocs-v4/tags","blobs_url":"https://api.github.com/repos/pokitdok/apidocs-v4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pokitdok/apidocs-v4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pokitdok/apidocs-v4/git/refs{/sha}","trees_url":"https://api.github.com/repos/pokitdok/apidocs-v4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pokitdok/apidocs-v4/statuses/{sha}","languages_url":"https://api.github.com/repos/pokitdok/apidocs-v4/languages","stargazers_url":"https://api.github.com/repos/pokitdok/apidocs-v4/stargazers","contributors_url":"https://api.github.com/repos/pokitdok/apidocs-v4/contributors","subscribers_url":"https://api.github.com/repos/pokitdok/apidocs-v4/subscribers","subscription_url":"https://api.github.com/repos/pokitdok/apidocs-v4/subscription","commits_url":"https://api.github.com/repos/pokitdok/apidocs-v4/commits{/sha}","git_commits_url":"https://api.github.com/repos/pokitdok/apidocs-v4/git/commits{/sha}","comments_url":"https://api.github.com/repos/pokitdok/apidocs-v4/comments{/number}","issue_comment_url":"https://api.github.com/repos/pokitdok/apidocs-v4/issues/comments{/number}","contents_url":"https://api.github.com/repos/pokitdok/apidocs-v4/contents/{+path}","compare_url":"https://api.github.com/repos/pokitdok/apidocs-v4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pokitdok/apidocs-v4/merges","archive_url":"https://api.github.com/repos/pokitdok/apidocs-v4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pokitdok/apidocs-v4/downloads","issues_url":"https://api.github.com/repos/pokitdok/apidocs-v4/issues{/number}","pulls_url":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls{/number}","milestones_url":"https://api.github.com/repos/pokitdok/apidocs-v4/milestones{/number}","notifications_url":"https://api.github.com/repos/pokitdok/apidocs-v4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pokitdok/apidocs-v4/labels{/name}","releases_url":"https://api.github.com/repos/pokitdok/apidocs-v4/releases{/id}","deployments_url":"https://api.github.com/repos/pokitdok/apidocs-v4/deployments","created_at":"2015-08-11T20:24:18Z","updated_at":"2016-12-13T19:07:01Z","pushed_at":"2017-03-09T18:16:10Z","git_url":"git://github.com/pokitdok/apidocs-v4.git","ssh_url":"git@github.com:pokitdok/apidocs-v4.git","clone_url":"https://github.com/pokitdok/apidocs-v4.git","svn_url":"https://github.com/pokitdok/apidocs-v4","homepage":"https://platform.pokitdok.com","size":1868,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":2,"default_branch":"dev"}},"base":{"label":"pokitdok:dev","ref":"dev","sha":"796c01425b48679f720e2278e3cb5aa24d307d00","user":{"login":"pokitdok","id":1810655,"avatar_url":"https://avatars2.githubusercontent.com/u/1810655?v=3","gravatar_id":"","url":"https://api.github.com/users/pokitdok","html_url":"https://github.com/pokitdok","followers_url":"https://api.github.com/users/pokitdok/followers","following_url":"https://api.github.com/users/pokitdok/following{/other_user}","gists_url":"https://api.github.com/users/pokitdok/gists{/gist_id}","starred_url":"https://api.github.com/users/pokitdok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokitdok/subscriptions","organizations_url":"https://api.github.com/users/pokitdok/orgs","repos_url":"https://api.github.com/users/pokitdok/repos","events_url":"https://api.github.com/users/pokitdok/events{/privacy}","received_events_url":"https://api.github.com/users/pokitdok/received_events","type":"Organization","site_admin":false},"repo":{"id":40563459,"name":"apidocs-v4","full_name":"pokitdok/apidocs-v4","owner":{"login":"pokitdok","id":1810655,"avatar_url":"https://avatars2.githubusercontent.com/u/1810655?v=3","gravatar_id":"","url":"https://api.github.com/users/pokitdok","html_url":"https://github.com/pokitdok","followers_url":"https://api.github.com/users/pokitdok/followers","following_url":"https://api.github.com/users/pokitdok/following{/other_user}","gists_url":"https://api.github.com/users/pokitdok/gists{/gist_id}","starred_url":"https://api.github.com/users/pokitdok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokitdok/subscriptions","organizations_url":"https://api.github.com/users/pokitdok/orgs","repos_url":"https://api.github.com/users/pokitdok/repos","events_url":"https://api.github.com/users/pokitdok/events{/privacy}","received_events_url":"https://api.github.com/users/pokitdok/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pokitdok/apidocs-v4","description":"Documentation for the PokitDok Platform APIs","fork":false,"url":"https://api.github.com/repos/pokitdok/apidocs-v4","forks_url":"https://api.github.com/repos/pokitdok/apidocs-v4/forks","keys_url":"https://api.github.com/repos/pokitdok/apidocs-v4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pokitdok/apidocs-v4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pokitdok/apidocs-v4/teams","hooks_url":"https://api.github.com/repos/pokitdok/apidocs-v4/hooks","issue_events_url":"https://api.github.com/repos/pokitdok/apidocs-v4/issues/events{/number}","events_url":"https://api.github.com/repos/pokitdok/apidocs-v4/events","assignees_url":"https://api.github.com/repos/pokitdok/apidocs-v4/assignees{/user}","branches_url":"https://api.github.com/repos/pokitdok/apidocs-v4/branches{/branch}","tags_url":"https://api.github.com/repos/pokitdok/apidocs-v4/tags","blobs_url":"https://api.github.com/repos/pokitdok/apidocs-v4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pokitdok/apidocs-v4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pokitdok/apidocs-v4/git/refs{/sha}","trees_url":"https://api.github.com/repos/pokitdok/apidocs-v4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pokitdok/apidocs-v4/statuses/{sha}","languages_url":"https://api.github.com/repos/pokitdok/apidocs-v4/languages","stargazers_url":"https://api.github.com/repos/pokitdok/apidocs-v4/stargazers","contributors_url":"https://api.github.com/repos/pokitdok/apidocs-v4/contributors","subscribers_url":"https://api.github.com/repos/pokitdok/apidocs-v4/subscribers","subscription_url":"https://api.github.com/repos/pokitdok/apidocs-v4/subscription","commits_url":"https://api.github.com/repos/pokitdok/apidocs-v4/commits{/sha}","git_commits_url":"https://api.github.com/repos/pokitdok/apidocs-v4/git/commits{/sha}","comments_url":"https://api.github.com/repos/pokitdok/apidocs-v4/comments{/number}","issue_comment_url":"https://api.github.com/repos/pokitdok/apidocs-v4/issues/comments{/number}","contents_url":"https://api.github.com/repos/pokitdok/apidocs-v4/contents/{+path}","compare_url":"https://api.github.com/repos/pokitdok/apidocs-v4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pokitdok/apidocs-v4/merges","archive_url":"https://api.github.com/repos/pokitdok/apidocs-v4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pokitdok/apidocs-v4/downloads","issues_url":"https://api.github.com/repos/pokitdok/apidocs-v4/issues{/number}","pulls_url":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls{/number}","milestones_url":"https://api.github.com/repos/pokitdok/apidocs-v4/milestones{/number}","notifications_url":"https://api.github.com/repos/pokitdok/apidocs-v4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pokitdok/apidocs-v4/labels{/name}","releases_url":"https://api.github.com/repos/pokitdok/apidocs-v4/releases{/id}","deployments_url":"https://api.github.com/repos/pokitdok/apidocs-v4/deployments","created_at":"2015-08-11T20:24:18Z","updated_at":"2016-12-13T19:07:01Z","pushed_at":"2017-03-09T18:16:10Z","git_url":"git://github.com/pokitdok/apidocs-v4.git","ssh_url":"git@github.com:pokitdok/apidocs-v4.git","clone_url":"https://github.com/pokitdok/apidocs-v4.git","svn_url":"https://github.com/pokitdok/apidocs-v4","homepage":"https://platform.pokitdok.com","size":1868,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":2,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls/218"},"html":{"href":"https://github.com/pokitdok/apidocs-v4/pull/218"},"issue":{"href":"https://api.github.com/repos/pokitdok/apidocs-v4/issues/218"},"comments":{"href":"https://api.github.com/repos/pokitdok/apidocs-v4/issues/218/comments"},"review_comments":{"href":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls/218/comments"},"review_comment":{"href":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pokitdok/apidocs-v4/pulls/218/commits"},"statuses":{"href":"https://api.github.com/repos/pokitdok/apidocs-v4/statuses/dff825b97f3d5338dd78b80fa62b8a7165c56d31"}}}}
{"actor":{"display_login":"dixonwh"}}