{"action":"opened","number":2868,"pull_request":{"url":"https://api.github.com/repos/rancher/cattle/pulls/2868","id":134089792,"html_url":"https://github.com/rancher/cattle/pull/2868","diff_url":"https://github.com/rancher/cattle/pull/2868.diff","patch_url":"https://github.com/rancher/cattle/pull/2868.patch","issue_url":"https://api.github.com/repos/rancher/cattle/issues/2868","number":2868,"state":"open","locked":false,"title":"Send 403 error when access is forbidden","user":{"login":"prachidamle","id":1470602,"avatar_url":"https://avatars2.githubusercontent.com/u/1470602?v=4","gravatar_id":"","url":"https://api.github.com/users/prachidamle","html_url":"https://github.com/prachidamle","followers_url":"https://api.github.com/users/prachidamle/followers","following_url":"https://api.github.com/users/prachidamle/following{/other_user}","gists_url":"https://api.github.com/users/prachidamle/gists{/gist_id}","starred_url":"https://api.github.com/users/prachidamle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prachidamle/subscriptions","organizations_url":"https://api.github.com/users/prachidamle/orgs","repos_url":"https://api.github.com/users/prachidamle/repos","events_url":"https://api.github.com/users/prachidamle/events{/privacy}","received_events_url":"https://api.github.com/users/prachidamle/received_events","type":"User","site_admin":false},"body":"When access mode chosen by Admin is \"restricted\" or \"required\", not all valid users can login. Only those specified by the siteaccess mode can login. Rest all users should be presented with Forbidden/403/\"Your account does not have access\" error message.\r\n\r\nWe were instead throwing Unauthorized error for such users even if their creds are valid.\r\n\r\nhttps://github.com/rancher/rancher/issues/9477","created_at":"2017-08-04T04:42:36Z","updated_at":"2017-08-04T04:42:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/rancher/cattle/pulls/2868/commits","review_comments_url":"https://api.github.com/repos/rancher/cattle/pulls/2868/comments","review_comment_url":"https://api.github.com/repos/rancher/cattle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rancher/cattle/issues/2868/comments","statuses_url":"https://api.github.com/repos/rancher/cattle/statuses/1b15eea033d9eb2b56ec80769b83ed70ae467a6a","head":{"label":"prachidamle:forbidden_error_message","ref":"forbidden_error_message","sha":"1b15eea033d9eb2b56ec80769b83ed70ae467a6a","user":{"login":"prachidamle","id":1470602,"avatar_url":"https://avatars2.githubusercontent.com/u/1470602?v=4","gravatar_id":"","url":"https://api.github.com/users/prachidamle","html_url":"https://github.com/prachidamle","followers_url":"https://api.github.com/users/prachidamle/followers","following_url":"https://api.github.com/users/prachidamle/following{/other_user}","gists_url":"https://api.github.com/users/prachidamle/gists{/gist_id}","starred_url":"https://api.github.com/users/prachidamle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prachidamle/subscriptions","organizations_url":"https://api.github.com/users/prachidamle/orgs","repos_url":"https://api.github.com/users/prachidamle/repos","events_url":"https://api.github.com/users/prachidamle/events{/privacy}","received_events_url":"https://api.github.com/users/prachidamle/received_events","type":"User","site_admin":false},"repo":{"id":41928469,"name":"cattle","full_name":"prachidamle/cattle","owner":{"login":"prachidamle","id":1470602,"avatar_url":"https://avatars2.githubusercontent.com/u/1470602?v=4","gravatar_id":"","url":"https://api.github.com/users/prachidamle","html_url":"https://github.com/prachidamle","followers_url":"https://api.github.com/users/prachidamle/followers","following_url":"https://api.github.com/users/prachidamle/following{/other_user}","gists_url":"https://api.github.com/users/prachidamle/gists{/gist_id}","starred_url":"https://api.github.com/users/prachidamle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prachidamle/subscriptions","organizations_url":"https://api.github.com/users/prachidamle/orgs","repos_url":"https://api.github.com/users/prachidamle/repos","events_url":"https://api.github.com/users/prachidamle/events{/privacy}","received_events_url":"https://api.github.com/users/prachidamle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prachidamle/cattle","description":"Infrastructure orchestration platform","fork":true,"url":"https://api.github.com/repos/prachidamle/cattle","forks_url":"https://api.github.com/repos/prachidamle/cattle/forks","keys_url":"https://api.github.com/repos/prachidamle/cattle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prachidamle/cattle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prachidamle/cattle/teams","hooks_url":"https://api.github.com/repos/prachidamle/cattle/hooks","issue_events_url":"https://api.github.com/repos/prachidamle/cattle/issues/events{/number}","events_url":"https://api.github.com/repos/prachidamle/cattle/events","assignees_url":"https://api.github.com/repos/prachidamle/cattle/assignees{/user}","branches_url":"https://api.github.com/repos/prachidamle/cattle/branches{/branch}","tags_url":"https://api.github.com/repos/prachidamle/cattle/tags","blobs_url":"https://api.github.com/repos/prachidamle/cattle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prachidamle/cattle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prachidamle/cattle/git/refs{/sha}","trees_url":"https://api.github.com/repos/prachidamle/cattle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prachidamle/cattle/statuses/{sha}","languages_url":"https://api.github.com/repos/prachidamle/cattle/languages","stargazers_url":"https://api.github.com/repos/prachidamle/cattle/stargazers","contributors_url":"https://api.github.com/repos/prachidamle/cattle/contributors","subscribers_url":"https://api.github.com/repos/prachidamle/cattle/subscribers","subscription_url":"https://api.github.com/repos/prachidamle/cattle/subscription","commits_url":"https://api.github.com/repos/prachidamle/cattle/commits{/sha}","git_commits_url":"https://api.github.com/repos/prachidamle/cattle/git/commits{/sha}","comments_url":"https://api.github.com/repos/prachidamle/cattle/comments{/number}","issue_comment_url":"https://api.github.com/repos/prachidamle/cattle/issues/comments{/number}","contents_url":"https://api.github.com/repos/prachidamle/cattle/contents/{+path}","compare_url":"https://api.github.com/repos/prachidamle/cattle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prachidamle/cattle/merges","archive_url":"https://api.github.com/repos/prachidamle/cattle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prachidamle/cattle/downloads","issues_url":"https://api.github.com/repos/prachidamle/cattle/issues{/number}","pulls_url":"https://api.github.com/repos/prachidamle/cattle/pulls{/number}","milestones_url":"https://api.github.com/repos/prachidamle/cattle/milestones{/number}","notifications_url":"https://api.github.com/repos/prachidamle/cattle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prachidamle/cattle/labels{/name}","releases_url":"https://api.github.com/repos/prachidamle/cattle/releases{/id}","deployments_url":"https://api.github.com/repos/prachidamle/cattle/deployments","created_at":"2015-09-04T17:19:41Z","updated_at":"2015-09-04T17:19:46Z","pushed_at":"2017-08-04T04:39:59Z","git_url":"git://github.com/prachidamle/cattle.git","ssh_url":"git@github.com:prachidamle/cattle.git","clone_url":"https://github.com/prachidamle/cattle.git","svn_url":"https://github.com/prachidamle/cattle","homepage":"","size":30888,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"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":"rancher:v1.6","ref":"v1.6","sha":"680ac1af80d137ab7c7adc4935c90b7a8b776b6d","user":{"login":"rancher","id":9343010,"avatar_url":"https://avatars3.githubusercontent.com/u/9343010?v=4","gravatar_id":"","url":"https://api.github.com/users/rancher","html_url":"https://github.com/rancher","followers_url":"https://api.github.com/users/rancher/followers","following_url":"https://api.github.com/users/rancher/following{/other_user}","gists_url":"https://api.github.com/users/rancher/gists{/gist_id}","starred_url":"https://api.github.com/users/rancher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rancher/subscriptions","organizations_url":"https://api.github.com/users/rancher/orgs","repos_url":"https://api.github.com/users/rancher/repos","events_url":"https://api.github.com/users/rancher/events{/privacy}","received_events_url":"https://api.github.com/users/rancher/received_events","type":"Organization","site_admin":false},"repo":{"id":18023059,"name":"cattle","full_name":"rancher/cattle","owner":{"login":"rancher","id":9343010,"avatar_url":"https://avatars3.githubusercontent.com/u/9343010?v=4","gravatar_id":"","url":"https://api.github.com/users/rancher","html_url":"https://github.com/rancher","followers_url":"https://api.github.com/users/rancher/followers","following_url":"https://api.github.com/users/rancher/following{/other_user}","gists_url":"https://api.github.com/users/rancher/gists{/gist_id}","starred_url":"https://api.github.com/users/rancher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rancher/subscriptions","organizations_url":"https://api.github.com/users/rancher/orgs","repos_url":"https://api.github.com/users/rancher/repos","events_url":"https://api.github.com/users/rancher/events{/privacy}","received_events_url":"https://api.github.com/users/rancher/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rancher/cattle","description":"Infrastructure orchestration engine","fork":false,"url":"https://api.github.com/repos/rancher/cattle","forks_url":"https://api.github.com/repos/rancher/cattle/forks","keys_url":"https://api.github.com/repos/rancher/cattle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rancher/cattle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rancher/cattle/teams","hooks_url":"https://api.github.com/repos/rancher/cattle/hooks","issue_events_url":"https://api.github.com/repos/rancher/cattle/issues/events{/number}","events_url":"https://api.github.com/repos/rancher/cattle/events","assignees_url":"https://api.github.com/repos/rancher/cattle/assignees{/user}","branches_url":"https://api.github.com/repos/rancher/cattle/branches{/branch}","tags_url":"https://api.github.com/repos/rancher/cattle/tags","blobs_url":"https://api.github.com/repos/rancher/cattle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rancher/cattle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rancher/cattle/git/refs{/sha}","trees_url":"https://api.github.com/repos/rancher/cattle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rancher/cattle/statuses/{sha}","languages_url":"https://api.github.com/repos/rancher/cattle/languages","stargazers_url":"https://api.github.com/repos/rancher/cattle/stargazers","contributors_url":"https://api.github.com/repos/rancher/cattle/contributors","subscribers_url":"https://api.github.com/repos/rancher/cattle/subscribers","subscription_url":"https://api.github.com/repos/rancher/cattle/subscription","commits_url":"https://api.github.com/repos/rancher/cattle/commits{/sha}","git_commits_url":"https://api.github.com/repos/rancher/cattle/git/commits{/sha}","comments_url":"https://api.github.com/repos/rancher/cattle/comments{/number}","issue_comment_url":"https://api.github.com/repos/rancher/cattle/issues/comments{/number}","contents_url":"https://api.github.com/repos/rancher/cattle/contents/{+path}","compare_url":"https://api.github.com/repos/rancher/cattle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rancher/cattle/merges","archive_url":"https://api.github.com/repos/rancher/cattle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rancher/cattle/downloads","issues_url":"https://api.github.com/repos/rancher/cattle/issues{/number}","pulls_url":"https://api.github.com/repos/rancher/cattle/pulls{/number}","milestones_url":"https://api.github.com/repos/rancher/cattle/milestones{/number}","notifications_url":"https://api.github.com/repos/rancher/cattle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rancher/cattle/labels{/name}","releases_url":"https://api.github.com/repos/rancher/cattle/releases{/id}","deployments_url":"https://api.github.com/repos/rancher/cattle/deployments","created_at":"2014-03-23T00:19:52Z","updated_at":"2017-08-04T04:23:03Z","pushed_at":"2017-08-04T00:40:38Z","git_url":"git://github.com/rancher/cattle.git","ssh_url":"git@github.com:rancher/cattle.git","clone_url":"https://github.com/rancher/cattle.git","svn_url":"https://github.com/rancher/cattle","homepage":"","size":30949,"stargazers_count":420,"watchers_count":420,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":151,"mirror_url":null,"open_issues_count":26,"forks":151,"open_issues":26,"watchers":420,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rancher/cattle/pulls/2868"},"html":{"href":"https://github.com/rancher/cattle/pull/2868"},"issue":{"href":"https://api.github.com/repos/rancher/cattle/issues/2868"},"comments":{"href":"https://api.github.com/repos/rancher/cattle/issues/2868/comments"},"review_comments":{"href":"https://api.github.com/repos/rancher/cattle/pulls/2868/comments"},"review_comment":{"href":"https://api.github.com/repos/rancher/cattle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rancher/cattle/pulls/2868/commits"},"statuses":{"href":"https://api.github.com/repos/rancher/cattle/statuses/1b15eea033d9eb2b56ec80769b83ed70ae467a6a"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":3,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"prachidamle"}}