{"action":"closed","number":13,"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/pulls/13","id":34745454,"html_url":"https://github.com/ministryofjustice/defence-request-service-omniauth-dsds/pull/13","diff_url":"https://github.com/ministryofjustice/defence-request-service-omniauth-dsds/pull/13.diff","patch_url":"https://github.com/ministryofjustice/defence-request-service-omniauth-dsds/pull/13.patch","issue_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/issues/13","number":13,"state":"closed","locked":false,"title":"Check the users roles in the oauth callback phase","user":{"login":"ansonK","id":722405,"avatar_url":"https://avatars.githubusercontent.com/u/722405?v=3","gravatar_id":"","url":"https://api.github.com/users/ansonK","html_url":"https://github.com/ansonK","followers_url":"https://api.github.com/users/ansonK/followers","following_url":"https://api.github.com/users/ansonK/following{/other_user}","gists_url":"https://api.github.com/users/ansonK/gists{/gist_id}","starred_url":"https://api.github.com/users/ansonK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansonK/subscriptions","organizations_url":"https://api.github.com/users/ansonK/orgs","repos_url":"https://api.github.com/users/ansonK/repos","events_url":"https://api.github.com/users/ansonK/events{/privacy}","received_events_url":"https://api.github.com/users/ansonK/received_events","type":"User","site_admin":false},"body":"Will raise an unauthorized error if the user logging in does not have any roles for the application.","created_at":"2015-05-05T17:05:47Z","updated_at":"2015-05-05T17:05:56Z","closed_at":"2015-05-05T17:05:56Z","merged_at":"2015-05-05T17:05:56Z","merge_commit_sha":"9a2890bd923bb7edb17a464537c78d1b95d4fed8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/pulls/13/commits","review_comments_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/pulls/13/comments","review_comment_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/issues/13/comments","statuses_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/statuses/ec13529e2fb2ac768b0a7d4eb9b0d4bb2e301362","head":{"label":"ministryofjustice:omniauth-role-check-on-login","ref":"omniauth-role-check-on-login","sha":"ec13529e2fb2ac768b0a7d4eb9b0d4bb2e301362","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":32978257,"name":"defence-request-service-omniauth-dsds","full_name":"ministryofjustice/defence-request-service-omniauth-dsds","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/defence-request-service-omniauth-dsds","description":"Omniauth Strategy for DSDS SSO","fork":false,"url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds","forks_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/forks","keys_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/events","assignees_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/merges","archive_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/releases{/id}","created_at":"2015-03-27T09:38:01Z","updated_at":"2015-05-05T15:07:20Z","pushed_at":"2015-05-05T17:05:56Z","git_url":"git://github.com/ministryofjustice/defence-request-service-omniauth-dsds.git","ssh_url":"git@github.com:ministryofjustice/defence-request-service-omniauth-dsds.git","clone_url":"https://github.com/ministryofjustice/defence-request-service-omniauth-dsds.git","svn_url":"https://github.com/ministryofjustice/defence-request-service-omniauth-dsds","homepage":null,"size":460,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ministryofjustice:master","ref":"master","sha":"a75420e99089f3a401f8ee582c2e8d35d4ef0dc7","user":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"repo":{"id":32978257,"name":"defence-request-service-omniauth-dsds","full_name":"ministryofjustice/defence-request-service-omniauth-dsds","owner":{"login":"ministryofjustice","id":2203574,"avatar_url":"https://avatars.githubusercontent.com/u/2203574?v=3","gravatar_id":"","url":"https://api.github.com/users/ministryofjustice","html_url":"https://github.com/ministryofjustice","followers_url":"https://api.github.com/users/ministryofjustice/followers","following_url":"https://api.github.com/users/ministryofjustice/following{/other_user}","gists_url":"https://api.github.com/users/ministryofjustice/gists{/gist_id}","starred_url":"https://api.github.com/users/ministryofjustice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ministryofjustice/subscriptions","organizations_url":"https://api.github.com/users/ministryofjustice/orgs","repos_url":"https://api.github.com/users/ministryofjustice/repos","events_url":"https://api.github.com/users/ministryofjustice/events{/privacy}","received_events_url":"https://api.github.com/users/ministryofjustice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ministryofjustice/defence-request-service-omniauth-dsds","description":"Omniauth Strategy for DSDS SSO","fork":false,"url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds","forks_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/forks","keys_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/teams","hooks_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/hooks","issue_events_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/issues/events{/number}","events_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/events","assignees_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/assignees{/user}","branches_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/branches{/branch}","tags_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/tags","blobs_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/git/refs{/sha}","trees_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/statuses/{sha}","languages_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/languages","stargazers_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/stargazers","contributors_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/contributors","subscribers_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/subscribers","subscription_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/subscription","commits_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/commits{/sha}","git_commits_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/git/commits{/sha}","comments_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/comments{/number}","issue_comment_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/issues/comments{/number}","contents_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/contents/{+path}","compare_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/merges","archive_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/downloads","issues_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/issues{/number}","pulls_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/pulls{/number}","milestones_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/milestones{/number}","notifications_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/labels{/name}","releases_url":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/releases{/id}","created_at":"2015-03-27T09:38:01Z","updated_at":"2015-05-05T15:07:20Z","pushed_at":"2015-05-05T17:05:56Z","git_url":"git://github.com/ministryofjustice/defence-request-service-omniauth-dsds.git","ssh_url":"git@github.com:ministryofjustice/defence-request-service-omniauth-dsds.git","clone_url":"https://github.com/ministryofjustice/defence-request-service-omniauth-dsds.git","svn_url":"https://github.com/ministryofjustice/defence-request-service-omniauth-dsds","homepage":null,"size":460,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/pulls/13"},"html":{"href":"https://github.com/ministryofjustice/defence-request-service-omniauth-dsds/pull/13"},"issue":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/issues/13"},"comments":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/ministryofjustice/defence-request-service-omniauth-dsds/statuses/ec13529e2fb2ac768b0a7d4eb9b0d4bb2e301362"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ansonK","id":722405,"avatar_url":"https://avatars.githubusercontent.com/u/722405?v=3","gravatar_id":"","url":"https://api.github.com/users/ansonK","html_url":"https://github.com/ansonK","followers_url":"https://api.github.com/users/ansonK/followers","following_url":"https://api.github.com/users/ansonK/following{/other_user}","gists_url":"https://api.github.com/users/ansonK/gists{/gist_id}","starred_url":"https://api.github.com/users/ansonK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansonK/subscriptions","organizations_url":"https://api.github.com/users/ansonK/orgs","repos_url":"https://api.github.com/users/ansonK/repos","events_url":"https://api.github.com/users/ansonK/events{/privacy}","received_events_url":"https://api.github.com/users/ansonK/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":0,"changed_files":1}}