{"action":"created","comment":{"url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls/comments/198198417","pull_request_review_id":132083370,"id":198198417,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODE5ODQxNw==","diff_hunk":"@@ -273,6 +275,12 @@ function redirectForAuthorization(req, options, strategy) {\n \t\treturn;\n \t}\n \n+\tvar stateParameter = { anonymousLogin: false, state: TokenUtil.getRandomNumber()};\n+\tif (options.allowAnonymousLogin === true) {","path":"lib/strategies/webapp-strategy.js","position":21,"original_position":21,"commit_id":"90ac4586c8dc9ac83df84d2e135fd1c70c107574","original_commit_id":"90ac4586c8dc9ac83df84d2e135fd1c70c107574","user":{"login":"sandmman","id":8973287,"node_id":"MDQ6VXNlcjg5NzMyODc=","avatar_url":"https://avatars2.githubusercontent.com/u/8973287?v=4","gravatar_id":"","url":"https://api.github.com/users/sandmman","html_url":"https://github.com/sandmman","followers_url":"https://api.github.com/users/sandmman/followers","following_url":"https://api.github.com/users/sandmman/following{/other_user}","gists_url":"https://api.github.com/users/sandmman/gists{/gist_id}","starred_url":"https://api.github.com/users/sandmman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandmman/subscriptions","organizations_url":"https://api.github.com/users/sandmman/orgs","repos_url":"https://api.github.com/users/sandmman/repos","events_url":"https://api.github.com/users/sandmman/events{/privacy}","received_events_url":"https://api.github.com/users/sandmman/received_events","type":"User","site_admin":false},"body":"I don't think this works like this...Can't you log in through facebook/etc. with this set to true?","created_at":"2018-06-26T15:46:36Z","updated_at":"2018-06-26T15:46:40Z","html_url":"https://github.com/ibm-cloud-security/appid-serversdk-nodejs/pull/105#discussion_r198198417","pull_request_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls/105","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls/comments/198198417"},"html":{"href":"https://github.com/ibm-cloud-security/appid-serversdk-nodejs/pull/105#discussion_r198198417"},"pull_request":{"href":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls/105"}}},"pull_request":{"url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls/105","id":196607046,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2NjA3MDQ2","html_url":"https://github.com/ibm-cloud-security/appid-serversdk-nodejs/pull/105","diff_url":"https://github.com/ibm-cloud-security/appid-serversdk-nodejs/pull/105.diff","patch_url":"https://github.com/ibm-cloud-security/appid-serversdk-nodejs/pull/105.patch","issue_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/issues/105","number":105,"state":"open","locked":false,"title":"Add state validation for authorization","user":{"login":"ishangulhane","id":26394621,"node_id":"MDQ6VXNlcjI2Mzk0NjIx","avatar_url":"https://avatars3.githubusercontent.com/u/26394621?v=4","gravatar_id":"","url":"https://api.github.com/users/ishangulhane","html_url":"https://github.com/ishangulhane","followers_url":"https://api.github.com/users/ishangulhane/followers","following_url":"https://api.github.com/users/ishangulhane/following{/other_user}","gists_url":"https://api.github.com/users/ishangulhane/gists{/gist_id}","starred_url":"https://api.github.com/users/ishangulhane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishangulhane/subscriptions","organizations_url":"https://api.github.com/users/ishangulhane/orgs","repos_url":"https://api.github.com/users/ishangulhane/repos","events_url":"https://api.github.com/users/ishangulhane/events{/privacy}","received_events_url":"https://api.github.com/users/ishangulhane/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-22T00:03:52Z","updated_at":"2018-06-26T15:46:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a9cdca30c637454ab2113f10d21bc6328497d82","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls/105/commits","review_comments_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls/105/comments","review_comment_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/issues/105/comments","statuses_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/statuses/90ac4586c8dc9ac83df84d2e135fd1c70c107574","head":{"label":"ibm-cloud-security:stateValidation","ref":"stateValidation","sha":"90ac4586c8dc9ac83df84d2e135fd1c70c107574","user":{"login":"ibm-cloud-security","id":25596862,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NTk2ODYy","avatar_url":"https://avatars3.githubusercontent.com/u/25596862?v=4","gravatar_id":"","url":"https://api.github.com/users/ibm-cloud-security","html_url":"https://github.com/ibm-cloud-security","followers_url":"https://api.github.com/users/ibm-cloud-security/followers","following_url":"https://api.github.com/users/ibm-cloud-security/following{/other_user}","gists_url":"https://api.github.com/users/ibm-cloud-security/gists{/gist_id}","starred_url":"https://api.github.com/users/ibm-cloud-security/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibm-cloud-security/subscriptions","organizations_url":"https://api.github.com/users/ibm-cloud-security/orgs","repos_url":"https://api.github.com/users/ibm-cloud-security/repos","events_url":"https://api.github.com/users/ibm-cloud-security/events{/privacy}","received_events_url":"https://api.github.com/users/ibm-cloud-security/received_events","type":"Organization","site_admin":false},"repo":{"id":79605439,"node_id":"MDEwOlJlcG9zaXRvcnk3OTYwNTQzOQ==","name":"appid-serversdk-nodejs","full_name":"ibm-cloud-security/appid-serversdk-nodejs","owner":{"login":"ibm-cloud-security","id":25596862,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NTk2ODYy","avatar_url":"https://avatars3.githubusercontent.com/u/25596862?v=4","gravatar_id":"","url":"https://api.github.com/users/ibm-cloud-security","html_url":"https://github.com/ibm-cloud-security","followers_url":"https://api.github.com/users/ibm-cloud-security/followers","following_url":"https://api.github.com/users/ibm-cloud-security/following{/other_user}","gists_url":"https://api.github.com/users/ibm-cloud-security/gists{/gist_id}","starred_url":"https://api.github.com/users/ibm-cloud-security/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibm-cloud-security/subscriptions","organizations_url":"https://api.github.com/users/ibm-cloud-security/orgs","repos_url":"https://api.github.com/users/ibm-cloud-security/repos","events_url":"https://api.github.com/users/ibm-cloud-security/events{/privacy}","received_events_url":"https://api.github.com/users/ibm-cloud-security/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ibm-cloud-security/appid-serversdk-nodejs","description":"Node.js SDK for the IBM Cloud App ID service","fork":false,"url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs","forks_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/forks","keys_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/teams","hooks_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/hooks","issue_events_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/issues/events{/number}","events_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/events","assignees_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/assignees{/user}","branches_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/branches{/branch}","tags_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/tags","blobs_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/statuses/{sha}","languages_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/languages","stargazers_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/stargazers","contributors_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/contributors","subscribers_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/subscribers","subscription_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/subscription","commits_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/contents/{+path}","compare_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/merges","archive_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/downloads","issues_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/issues{/number}","pulls_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls{/number}","milestones_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/milestones{/number}","notifications_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/labels{/name}","releases_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/releases{/id}","deployments_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/deployments","created_at":"2017-01-20T22:17:40Z","updated_at":"2018-06-25T14:39:12Z","pushed_at":"2018-06-26T15:40:24Z","git_url":"git://github.com/ibm-cloud-security/appid-serversdk-nodejs.git","ssh_url":"git@github.com:ibm-cloud-security/appid-serversdk-nodejs.git","clone_url":"https://github.com/ibm-cloud-security/appid-serversdk-nodejs.git","svn_url":"https://github.com/ibm-cloud-security/appid-serversdk-nodejs","homepage":"","size":2341,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":9,"open_issues":5,"watchers":6,"default_branch":"master"}},"base":{"label":"ibm-cloud-security:development","ref":"development","sha":"12db01eadcb0334e257d915636a40f769a261209","user":{"login":"ibm-cloud-security","id":25596862,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NTk2ODYy","avatar_url":"https://avatars3.githubusercontent.com/u/25596862?v=4","gravatar_id":"","url":"https://api.github.com/users/ibm-cloud-security","html_url":"https://github.com/ibm-cloud-security","followers_url":"https://api.github.com/users/ibm-cloud-security/followers","following_url":"https://api.github.com/users/ibm-cloud-security/following{/other_user}","gists_url":"https://api.github.com/users/ibm-cloud-security/gists{/gist_id}","starred_url":"https://api.github.com/users/ibm-cloud-security/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibm-cloud-security/subscriptions","organizations_url":"https://api.github.com/users/ibm-cloud-security/orgs","repos_url":"https://api.github.com/users/ibm-cloud-security/repos","events_url":"https://api.github.com/users/ibm-cloud-security/events{/privacy}","received_events_url":"https://api.github.com/users/ibm-cloud-security/received_events","type":"Organization","site_admin":false},"repo":{"id":79605439,"node_id":"MDEwOlJlcG9zaXRvcnk3OTYwNTQzOQ==","name":"appid-serversdk-nodejs","full_name":"ibm-cloud-security/appid-serversdk-nodejs","owner":{"login":"ibm-cloud-security","id":25596862,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NTk2ODYy","avatar_url":"https://avatars3.githubusercontent.com/u/25596862?v=4","gravatar_id":"","url":"https://api.github.com/users/ibm-cloud-security","html_url":"https://github.com/ibm-cloud-security","followers_url":"https://api.github.com/users/ibm-cloud-security/followers","following_url":"https://api.github.com/users/ibm-cloud-security/following{/other_user}","gists_url":"https://api.github.com/users/ibm-cloud-security/gists{/gist_id}","starred_url":"https://api.github.com/users/ibm-cloud-security/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibm-cloud-security/subscriptions","organizations_url":"https://api.github.com/users/ibm-cloud-security/orgs","repos_url":"https://api.github.com/users/ibm-cloud-security/repos","events_url":"https://api.github.com/users/ibm-cloud-security/events{/privacy}","received_events_url":"https://api.github.com/users/ibm-cloud-security/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ibm-cloud-security/appid-serversdk-nodejs","description":"Node.js SDK for the IBM Cloud App ID service","fork":false,"url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs","forks_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/forks","keys_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/teams","hooks_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/hooks","issue_events_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/issues/events{/number}","events_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/events","assignees_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/assignees{/user}","branches_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/branches{/branch}","tags_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/tags","blobs_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/statuses/{sha}","languages_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/languages","stargazers_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/stargazers","contributors_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/contributors","subscribers_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/subscribers","subscription_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/subscription","commits_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/contents/{+path}","compare_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/merges","archive_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/downloads","issues_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/issues{/number}","pulls_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls{/number}","milestones_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/milestones{/number}","notifications_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/labels{/name}","releases_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/releases{/id}","deployments_url":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/deployments","created_at":"2017-01-20T22:17:40Z","updated_at":"2018-06-25T14:39:12Z","pushed_at":"2018-06-26T15:40:24Z","git_url":"git://github.com/ibm-cloud-security/appid-serversdk-nodejs.git","ssh_url":"git@github.com:ibm-cloud-security/appid-serversdk-nodejs.git","clone_url":"https://github.com/ibm-cloud-security/appid-serversdk-nodejs.git","svn_url":"https://github.com/ibm-cloud-security/appid-serversdk-nodejs","homepage":"","size":2341,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":9,"open_issues":5,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls/105"},"html":{"href":"https://github.com/ibm-cloud-security/appid-serversdk-nodejs/pull/105"},"issue":{"href":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/issues/105"},"comments":{"href":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/issues/105/comments"},"review_comments":{"href":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls/105/comments"},"review_comment":{"href":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/pulls/105/commits"},"statuses":{"href":"https://api.github.com/repos/ibm-cloud-security/appid-serversdk-nodejs/statuses/90ac4586c8dc9ac83df84d2e135fd1c70c107574"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sandmman"}}