{"action":"created","comment":{"url":"https://api.github.com/repos/hmrc/trusts/pulls/comments/262104286","pull_request_review_id":210196443,"id":262104286,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2MjEwNDI4Ng==","diff_hunk":"@@ -29,16 +30,16 @@ import scala.util.control.NonFatal\n @Singleton\n class AuthService @Inject()(override val authConnector: AuthConnector) extends AuthorisedFunctions {\n \n-   def authorisedUser()(f: => Future[Result])\n-                     (implicit hc: HeaderCarrier): Future[Result] = {\n-    authorised() {\n-      f\n+\n+  def authorisedUser()(f: Option[AffinityGroup] => Future[Result])(implicit hc: HeaderCarrier): Future[Result] = {\n+    authorised().retrieve(affinityGroup) {","path":"app/uk/gov/hmrc/trusts/services/AuthService.scala","position":null,"original_position":20,"commit_id":"e920622623f29266bb6609e143255588c86d4c62","original_commit_id":"b6b356c2c815d6ae0b0c1e4512eeff9ec8e84a16","user":{"login":"manishsw","id":18024968,"node_id":"MDQ6VXNlcjE4MDI0OTY4","avatar_url":"https://avatars1.githubusercontent.com/u/18024968?v=4","gravatar_id":"","url":"https://api.github.com/users/manishsw","html_url":"https://github.com/manishsw","followers_url":"https://api.github.com/users/manishsw/followers","following_url":"https://api.github.com/users/manishsw/following{/other_user}","gists_url":"https://api.github.com/users/manishsw/gists{/gist_id}","starred_url":"https://api.github.com/users/manishsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishsw/subscriptions","organizations_url":"https://api.github.com/users/manishsw/orgs","repos_url":"https://api.github.com/users/manishsw/repos","events_url":"https://api.github.com/users/manishsw/events{/privacy}","received_events_url":"https://api.github.com/users/manishsw/received_events","type":"User","site_admin":false},"body":"Done @adamconder ","created_at":"2019-03-04T15:20:32Z","updated_at":"2019-03-04T15:20:33Z","html_url":"https://github.com/hmrc/trusts/pull/23#discussion_r262104286","pull_request_url":"https://api.github.com/repos/hmrc/trusts/pulls/23","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hmrc/trusts/pulls/comments/262104286"},"html":{"href":"https://github.com/hmrc/trusts/pull/23#discussion_r262104286"},"pull_request":{"href":"https://api.github.com/repos/hmrc/trusts/pulls/23"}},"in_reply_to_id":262087604},"pull_request":{"url":"https://api.github.com/repos/hmrc/trusts/pulls/23","id":256273036,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU2MjczMDM2","html_url":"https://github.com/hmrc/trusts/pull/23","diff_url":"https://github.com/hmrc/trusts/pull/23.diff","patch_url":"https://github.com/hmrc/trusts/pull/23.patch","issue_url":"https://api.github.com/repos/hmrc/trusts/issues/23","number":23,"state":"open","locked":false,"title":"[TRUS-677] Tax enrolment for Orgnisation affinity group user.","user":{"login":"manishsw","id":18024968,"node_id":"MDQ6VXNlcjE4MDI0OTY4","avatar_url":"https://avatars1.githubusercontent.com/u/18024968?v=4","gravatar_id":"","url":"https://api.github.com/users/manishsw","html_url":"https://github.com/manishsw","followers_url":"https://api.github.com/users/manishsw/followers","following_url":"https://api.github.com/users/manishsw/following{/other_user}","gists_url":"https://api.github.com/users/manishsw/gists{/gist_id}","starred_url":"https://api.github.com/users/manishsw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishsw/subscriptions","organizations_url":"https://api.github.com/users/manishsw/orgs","repos_url":"https://api.github.com/users/manishsw/repos","events_url":"https://api.github.com/users/manishsw/events{/privacy}","received_events_url":"https://api.github.com/users/manishsw/received_events","type":"User","site_admin":false},"body":"- get the subscription id from des.\r\n- set the subscription to tax enrolment.\r\n- callback url for tax enrolment to callback.","created_at":"2019-02-26T12:58:41Z","updated_at":"2019-03-04T15:20:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c088db42f8adb88043cdb6cabe8c294fe06407c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1257689708,"node_id":"MDU6TGFiZWwxMjU3Njg5NzA4","url":"https://api.github.com/repos/hmrc/trusts/labels/Accepted%20-%20Minor%20Comments","name":"Accepted - Minor Comments","color":"3cd8a4","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hmrc/trusts/pulls/23/commits","review_comments_url":"https://api.github.com/repos/hmrc/trusts/pulls/23/comments","review_comment_url":"https://api.github.com/repos/hmrc/trusts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmrc/trusts/issues/23/comments","statuses_url":"https://api.github.com/repos/hmrc/trusts/statuses/e920622623f29266bb6609e143255588c86d4c62","head":{"label":"hmrc:TRUS-677","ref":"TRUS-677","sha":"e920622623f29266bb6609e143255588c86d4c62","user":{"login":"hmrc","id":5755339,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3NTUzMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/5755339?v=4","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"repo":{"id":148148267,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgxNDgyNjc=","name":"trusts","full_name":"hmrc/trusts","private":false,"owner":{"login":"hmrc","id":5755339,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3NTUzMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/5755339?v=4","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hmrc/trusts","description":null,"fork":false,"url":"https://api.github.com/repos/hmrc/trusts","forks_url":"https://api.github.com/repos/hmrc/trusts/forks","keys_url":"https://api.github.com/repos/hmrc/trusts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmrc/trusts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmrc/trusts/teams","hooks_url":"https://api.github.com/repos/hmrc/trusts/hooks","issue_events_url":"https://api.github.com/repos/hmrc/trusts/issues/events{/number}","events_url":"https://api.github.com/repos/hmrc/trusts/events","assignees_url":"https://api.github.com/repos/hmrc/trusts/assignees{/user}","branches_url":"https://api.github.com/repos/hmrc/trusts/branches{/branch}","tags_url":"https://api.github.com/repos/hmrc/trusts/tags","blobs_url":"https://api.github.com/repos/hmrc/trusts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmrc/trusts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmrc/trusts/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmrc/trusts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmrc/trusts/statuses/{sha}","languages_url":"https://api.github.com/repos/hmrc/trusts/languages","stargazers_url":"https://api.github.com/repos/hmrc/trusts/stargazers","contributors_url":"https://api.github.com/repos/hmrc/trusts/contributors","subscribers_url":"https://api.github.com/repos/hmrc/trusts/subscribers","subscription_url":"https://api.github.com/repos/hmrc/trusts/subscription","commits_url":"https://api.github.com/repos/hmrc/trusts/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmrc/trusts/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmrc/trusts/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmrc/trusts/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmrc/trusts/contents/{+path}","compare_url":"https://api.github.com/repos/hmrc/trusts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmrc/trusts/merges","archive_url":"https://api.github.com/repos/hmrc/trusts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmrc/trusts/downloads","issues_url":"https://api.github.com/repos/hmrc/trusts/issues{/number}","pulls_url":"https://api.github.com/repos/hmrc/trusts/pulls{/number}","milestones_url":"https://api.github.com/repos/hmrc/trusts/milestones{/number}","notifications_url":"https://api.github.com/repos/hmrc/trusts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmrc/trusts/labels{/name}","releases_url":"https://api.github.com/repos/hmrc/trusts/releases{/id}","deployments_url":"https://api.github.com/repos/hmrc/trusts/deployments","created_at":"2018-09-10T11:59:17Z","updated_at":"2019-02-26T10:55:33Z","pushed_at":"2019-03-04T15:18:23Z","git_url":"git://github.com/hmrc/trusts.git","ssh_url":"git@github.com:hmrc/trusts.git","clone_url":"https://github.com/hmrc/trusts.git","svn_url":"https://github.com/hmrc/trusts","homepage":"","size":218,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"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":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hmrc:master","ref":"master","sha":"5c886ab5580199f79c11296c2d5fa3e09fce1a89","user":{"login":"hmrc","id":5755339,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3NTUzMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/5755339?v=4","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"repo":{"id":148148267,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgxNDgyNjc=","name":"trusts","full_name":"hmrc/trusts","private":false,"owner":{"login":"hmrc","id":5755339,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU3NTUzMzk=","avatar_url":"https://avatars1.githubusercontent.com/u/5755339?v=4","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hmrc/trusts","description":null,"fork":false,"url":"https://api.github.com/repos/hmrc/trusts","forks_url":"https://api.github.com/repos/hmrc/trusts/forks","keys_url":"https://api.github.com/repos/hmrc/trusts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmrc/trusts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmrc/trusts/teams","hooks_url":"https://api.github.com/repos/hmrc/trusts/hooks","issue_events_url":"https://api.github.com/repos/hmrc/trusts/issues/events{/number}","events_url":"https://api.github.com/repos/hmrc/trusts/events","assignees_url":"https://api.github.com/repos/hmrc/trusts/assignees{/user}","branches_url":"https://api.github.com/repos/hmrc/trusts/branches{/branch}","tags_url":"https://api.github.com/repos/hmrc/trusts/tags","blobs_url":"https://api.github.com/repos/hmrc/trusts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmrc/trusts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmrc/trusts/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmrc/trusts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmrc/trusts/statuses/{sha}","languages_url":"https://api.github.com/repos/hmrc/trusts/languages","stargazers_url":"https://api.github.com/repos/hmrc/trusts/stargazers","contributors_url":"https://api.github.com/repos/hmrc/trusts/contributors","subscribers_url":"https://api.github.com/repos/hmrc/trusts/subscribers","subscription_url":"https://api.github.com/repos/hmrc/trusts/subscription","commits_url":"https://api.github.com/repos/hmrc/trusts/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmrc/trusts/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmrc/trusts/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmrc/trusts/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmrc/trusts/contents/{+path}","compare_url":"https://api.github.com/repos/hmrc/trusts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmrc/trusts/merges","archive_url":"https://api.github.com/repos/hmrc/trusts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmrc/trusts/downloads","issues_url":"https://api.github.com/repos/hmrc/trusts/issues{/number}","pulls_url":"https://api.github.com/repos/hmrc/trusts/pulls{/number}","milestones_url":"https://api.github.com/repos/hmrc/trusts/milestones{/number}","notifications_url":"https://api.github.com/repos/hmrc/trusts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmrc/trusts/labels{/name}","releases_url":"https://api.github.com/repos/hmrc/trusts/releases{/id}","deployments_url":"https://api.github.com/repos/hmrc/trusts/deployments","created_at":"2018-09-10T11:59:17Z","updated_at":"2019-02-26T10:55:33Z","pushed_at":"2019-03-04T15:18:23Z","git_url":"git://github.com/hmrc/trusts.git","ssh_url":"git@github.com:hmrc/trusts.git","clone_url":"https://github.com/hmrc/trusts.git","svn_url":"https://github.com/hmrc/trusts","homepage":"","size":218,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"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":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmrc/trusts/pulls/23"},"html":{"href":"https://github.com/hmrc/trusts/pull/23"},"issue":{"href":"https://api.github.com/repos/hmrc/trusts/issues/23"},"comments":{"href":"https://api.github.com/repos/hmrc/trusts/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/hmrc/trusts/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/hmrc/trusts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmrc/trusts/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/hmrc/trusts/statuses/e920622623f29266bb6609e143255588c86d4c62"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"manishsw"}}