{"action":"created","comment":{"url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls/comments/55882540","id":55882540,"diff_hunk":"@@ -26,6 +27,6 @@ function initializeClients() {\n     }\n }\n \n-// on startup, update/create the allowed clients.\n-Meteor.startup(initializeClients);\n \n+// On startup, update/create the allowed clients.\n+Meteor.startup(initializeClients);","path":"examples/resourceServer/server/index.js","position":14,"original_position":14,"commit_id":"1a53d057b70f5bfc9b509a2469c70cc8e6feebae","original_commit_id":"40c20feff0458cf142cc411268df9706cc5dae8f","user":{"login":"awatson1978","id":675910,"avatar_url":"https://avatars.githubusercontent.com/u/675910?v=3","gravatar_id":"","url":"https://api.github.com/users/awatson1978","html_url":"https://github.com/awatson1978","followers_url":"https://api.github.com/users/awatson1978/followers","following_url":"https://api.github.com/users/awatson1978/following{/other_user}","gists_url":"https://api.github.com/users/awatson1978/gists{/gist_id}","starred_url":"https://api.github.com/users/awatson1978/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awatson1978/subscriptions","organizations_url":"https://api.github.com/users/awatson1978/orgs","repos_url":"https://api.github.com/users/awatson1978/repos","events_url":"https://api.github.com/users/awatson1978/events{/privacy}","received_events_url":"https://api.github.com/users/awatson1978/received_events","type":"User","site_admin":false},"body":"How about something like:\r\n\r\n```js\r\nMeteor.startup(\r\n  if(process.env.INITIALIZE){\r\n    if(oAuth2Server.collections.client.length === 0){\r\n      initializeClients()\r\n    }\r\n  }\r\n);\r\n```","created_at":"2016-03-11T20:14:27Z","updated_at":"2016-03-11T20:14:27Z","html_url":"https://github.com/prime-8-consulting/meteor-oauth2/pull/14#discussion_r55882540","pull_request_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls/comments/55882540"},"html":{"href":"https://github.com/prime-8-consulting/meteor-oauth2/pull/14#discussion_r55882540"},"pull_request":{"href":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls/14","id":62472878,"html_url":"https://github.com/prime-8-consulting/meteor-oauth2/pull/14","diff_url":"https://github.com/prime-8-consulting/meteor-oauth2/pull/14.diff","patch_url":"https://github.com/prime-8-consulting/meteor-oauth2/pull/14.patch","issue_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/issues/14","number":14,"state":"open","locked":false,"title":"ResourceServer Documentation Review","user":{"login":"awatson1978","id":675910,"avatar_url":"https://avatars.githubusercontent.com/u/675910?v=3","gravatar_id":"","url":"https://api.github.com/users/awatson1978","html_url":"https://github.com/awatson1978","followers_url":"https://api.github.com/users/awatson1978/followers","following_url":"https://api.github.com/users/awatson1978/following{/other_user}","gists_url":"https://api.github.com/users/awatson1978/gists{/gist_id}","starred_url":"https://api.github.com/users/awatson1978/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awatson1978/subscriptions","organizations_url":"https://api.github.com/users/awatson1978/orgs","repos_url":"https://api.github.com/users/awatson1978/repos","events_url":"https://api.github.com/users/awatson1978/events{/privacy}","received_events_url":"https://api.github.com/users/awatson1978/received_events","type":"User","site_admin":false},"body":"Finished updating the ResourceServer documentation, and aligning it to the diagram.  Added the beginnings of a form at C1.1 that could be used by either an admin or on a customer API SDK configuration page.  ","created_at":"2016-03-10T23:15:33Z","updated_at":"2016-03-11T20:14:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0b15fce02efda53cfcd5cfbdb5aa14f80ba8423","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls/14/commits","review_comments_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls/14/comments","review_comment_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/issues/14/comments","statuses_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/statuses/1a53d057b70f5bfc9b509a2469c70cc8e6feebae","head":{"label":"awatson1978:resource-server","ref":"resource-server","sha":"1a53d057b70f5bfc9b509a2469c70cc8e6feebae","user":{"login":"awatson1978","id":675910,"avatar_url":"https://avatars.githubusercontent.com/u/675910?v=3","gravatar_id":"","url":"https://api.github.com/users/awatson1978","html_url":"https://github.com/awatson1978","followers_url":"https://api.github.com/users/awatson1978/followers","following_url":"https://api.github.com/users/awatson1978/following{/other_user}","gists_url":"https://api.github.com/users/awatson1978/gists{/gist_id}","starred_url":"https://api.github.com/users/awatson1978/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awatson1978/subscriptions","organizations_url":"https://api.github.com/users/awatson1978/orgs","repos_url":"https://api.github.com/users/awatson1978/repos","events_url":"https://api.github.com/users/awatson1978/events{/privacy}","received_events_url":"https://api.github.com/users/awatson1978/received_events","type":"User","site_admin":false},"repo":{"id":53338900,"name":"meteor-oauth2","full_name":"awatson1978/meteor-oauth2","owner":{"login":"awatson1978","id":675910,"avatar_url":"https://avatars.githubusercontent.com/u/675910?v=3","gravatar_id":"","url":"https://api.github.com/users/awatson1978","html_url":"https://github.com/awatson1978","followers_url":"https://api.github.com/users/awatson1978/followers","following_url":"https://api.github.com/users/awatson1978/following{/other_user}","gists_url":"https://api.github.com/users/awatson1978/gists{/gist_id}","starred_url":"https://api.github.com/users/awatson1978/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awatson1978/subscriptions","organizations_url":"https://api.github.com/users/awatson1978/orgs","repos_url":"https://api.github.com/users/awatson1978/repos","events_url":"https://api.github.com/users/awatson1978/events{/privacy}","received_events_url":"https://api.github.com/users/awatson1978/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/awatson1978/meteor-oauth2","description":"","fork":true,"url":"https://api.github.com/repos/awatson1978/meteor-oauth2","forks_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/forks","keys_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/teams","hooks_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/hooks","issue_events_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/issues/events{/number}","events_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/events","assignees_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/assignees{/user}","branches_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/branches{/branch}","tags_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/tags","blobs_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/git/refs{/sha}","trees_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/statuses/{sha}","languages_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/languages","stargazers_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/stargazers","contributors_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/contributors","subscribers_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/subscribers","subscription_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/subscription","commits_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/commits{/sha}","git_commits_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/git/commits{/sha}","comments_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/comments{/number}","issue_comment_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/issues/comments{/number}","contents_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/contents/{+path}","compare_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/merges","archive_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/downloads","issues_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/issues{/number}","pulls_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/pulls{/number}","milestones_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/milestones{/number}","notifications_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/labels{/name}","releases_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/releases{/id}","deployments_url":"https://api.github.com/repos/awatson1978/meteor-oauth2/deployments","created_at":"2016-03-07T16:07:27Z","updated_at":"2016-03-07T16:07:28Z","pushed_at":"2016-03-11T20:06:53Z","git_url":"git://github.com/awatson1978/meteor-oauth2.git","ssh_url":"git@github.com:awatson1978/meteor-oauth2.git","clone_url":"https://github.com/awatson1978/meteor-oauth2.git","svn_url":"https://github.com/awatson1978/meteor-oauth2","homepage":null,"size":1221,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"prime-8-consulting:master","ref":"master","sha":"91f50ebaca471b90fff2e885cda686e044552e70","user":{"login":"prime-8-consulting","id":10677801,"avatar_url":"https://avatars.githubusercontent.com/u/10677801?v=3","gravatar_id":"","url":"https://api.github.com/users/prime-8-consulting","html_url":"https://github.com/prime-8-consulting","followers_url":"https://api.github.com/users/prime-8-consulting/followers","following_url":"https://api.github.com/users/prime-8-consulting/following{/other_user}","gists_url":"https://api.github.com/users/prime-8-consulting/gists{/gist_id}","starred_url":"https://api.github.com/users/prime-8-consulting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prime-8-consulting/subscriptions","organizations_url":"https://api.github.com/users/prime-8-consulting/orgs","repos_url":"https://api.github.com/users/prime-8-consulting/repos","events_url":"https://api.github.com/users/prime-8-consulting/events{/privacy}","received_events_url":"https://api.github.com/users/prime-8-consulting/received_events","type":"Organization","site_admin":false},"repo":{"id":51098290,"name":"meteor-oauth2","full_name":"prime-8-consulting/meteor-oauth2","owner":{"login":"prime-8-consulting","id":10677801,"avatar_url":"https://avatars.githubusercontent.com/u/10677801?v=3","gravatar_id":"","url":"https://api.github.com/users/prime-8-consulting","html_url":"https://github.com/prime-8-consulting","followers_url":"https://api.github.com/users/prime-8-consulting/followers","following_url":"https://api.github.com/users/prime-8-consulting/following{/other_user}","gists_url":"https://api.github.com/users/prime-8-consulting/gists{/gist_id}","starred_url":"https://api.github.com/users/prime-8-consulting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prime-8-consulting/subscriptions","organizations_url":"https://api.github.com/users/prime-8-consulting/orgs","repos_url":"https://api.github.com/users/prime-8-consulting/repos","events_url":"https://api.github.com/users/prime-8-consulting/events{/privacy}","received_events_url":"https://api.github.com/users/prime-8-consulting/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prime-8-consulting/meteor-oauth2","description":"","fork":false,"url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2","forks_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/forks","keys_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/teams","hooks_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/hooks","issue_events_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/issues/events{/number}","events_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/events","assignees_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/assignees{/user}","branches_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/branches{/branch}","tags_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/tags","blobs_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/git/refs{/sha}","trees_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/statuses/{sha}","languages_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/languages","stargazers_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/stargazers","contributors_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/contributors","subscribers_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/subscribers","subscription_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/subscription","commits_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/commits{/sha}","git_commits_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/git/commits{/sha}","comments_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/comments{/number}","issue_comment_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/issues/comments{/number}","contents_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/contents/{+path}","compare_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/merges","archive_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/downloads","issues_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/issues{/number}","pulls_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls{/number}","milestones_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/milestones{/number}","notifications_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/labels{/name}","releases_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/releases{/id}","deployments_url":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/deployments","created_at":"2016-02-04T19:05:51Z","updated_at":"2016-03-11T08:23:35Z","pushed_at":"2016-03-11T20:06:53Z","git_url":"git://github.com/prime-8-consulting/meteor-oauth2.git","ssh_url":"git@github.com:prime-8-consulting/meteor-oauth2.git","clone_url":"https://github.com/prime-8-consulting/meteor-oauth2.git","svn_url":"https://github.com/prime-8-consulting/meteor-oauth2","homepage":null,"size":1220,"stargazers_count":19,"watchers_count":19,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls/14"},"html":{"href":"https://github.com/prime-8-consulting/meteor-oauth2/pull/14"},"issue":{"href":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/issues/14"},"comments":{"href":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/prime-8-consulting/meteor-oauth2/statuses/1a53d057b70f5bfc9b509a2469c70cc8e6feebae"}}}}