{"action":"opened","number":1124,"pull_request":{"url":"https://api.github.com/repos/cBioPortal/cbioportal/pulls/1124","id":68011469,"html_url":"https://github.com/cBioPortal/cbioportal/pull/1124","diff_url":"https://github.com/cBioPortal/cbioportal/pull/1124.diff","patch_url":"https://github.com/cBioPortal/cbioportal/pull/1124.patch","issue_url":"https://api.github.com/repos/cBioPortal/cbioportal/issues/1124","number":1124,"state":"open","locked":false,"title":"Making AD authentication work with rc branch","user":{"login":"holtgrewe","id":521780,"avatar_url":"https://avatars.githubusercontent.com/u/521780?v=3","gravatar_id":"","url":"https://api.github.com/users/holtgrewe","html_url":"https://github.com/holtgrewe","followers_url":"https://api.github.com/users/holtgrewe/followers","following_url":"https://api.github.com/users/holtgrewe/following{/other_user}","gists_url":"https://api.github.com/users/holtgrewe/gists{/gist_id}","starred_url":"https://api.github.com/users/holtgrewe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holtgrewe/subscriptions","organizations_url":"https://api.github.com/users/holtgrewe/orgs","repos_url":"https://api.github.com/users/holtgrewe/repos","events_url":"https://api.github.com/users/holtgrewe/events{/privacy}","received_events_url":"https://api.github.com/users/holtgrewe/received_events","type":"User","site_admin":false},"body":"As asked for in #1072, the isolated changes that make authentication work with AD.\r\n\r\nHowever, *authorization* is not working with this patch as - for some reason - the authorities come from the AD server. Further, the email address is not part of the `UserPasswordAuthenticationToken` that is passed around internally. The object of this type contains the user name and also the full LDAP distinguished name but no email address that could be used to access the email table.\r\n\r\nFurther, I could not find any mention of a user mapper in #117 that @ juleskers mentioned in the discussion in #102.\r\n\r\nThus, so far the only working solution that makes authentication with AD work for me and also offers the possibility to use the cBioPortal authorization via the users and authorities table goes through LDAP.","created_at":"2016-04-27T07:58:31Z","updated_at":"2016-04-27T07:58:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cBioPortal/cbioportal/pulls/1124/commits","review_comments_url":"https://api.github.com/repos/cBioPortal/cbioportal/pulls/1124/comments","review_comment_url":"https://api.github.com/repos/cBioPortal/cbioportal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cBioPortal/cbioportal/issues/1124/comments","statuses_url":"https://api.github.com/repos/cBioPortal/cbioportal/statuses/82249fb78f5c766020c2debc6cc09f4717c36ae9","head":{"label":"bihealth:fix/ad-v1.x","ref":"fix/ad-v1.x","sha":"82249fb78f5c766020c2debc6cc09f4717c36ae9","user":{"login":"bihealth","id":11364301,"avatar_url":"https://avatars.githubusercontent.com/u/11364301?v=3","gravatar_id":"","url":"https://api.github.com/users/bihealth","html_url":"https://github.com/bihealth","followers_url":"https://api.github.com/users/bihealth/followers","following_url":"https://api.github.com/users/bihealth/following{/other_user}","gists_url":"https://api.github.com/users/bihealth/gists{/gist_id}","starred_url":"https://api.github.com/users/bihealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bihealth/subscriptions","organizations_url":"https://api.github.com/users/bihealth/orgs","repos_url":"https://api.github.com/users/bihealth/repos","events_url":"https://api.github.com/users/bihealth/events{/privacy}","received_events_url":"https://api.github.com/users/bihealth/received_events","type":"Organization","site_admin":false},"repo":{"id":37854238,"name":"cbioportal","full_name":"bihealth/cbioportal","owner":{"login":"bihealth","id":11364301,"avatar_url":"https://avatars.githubusercontent.com/u/11364301?v=3","gravatar_id":"","url":"https://api.github.com/users/bihealth","html_url":"https://github.com/bihealth","followers_url":"https://api.github.com/users/bihealth/followers","following_url":"https://api.github.com/users/bihealth/following{/other_user}","gists_url":"https://api.github.com/users/bihealth/gists{/gist_id}","starred_url":"https://api.github.com/users/bihealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bihealth/subscriptions","organizations_url":"https://api.github.com/users/bihealth/orgs","repos_url":"https://api.github.com/users/bihealth/repos","events_url":"https://api.github.com/users/bihealth/events{/privacy}","received_events_url":"https://api.github.com/users/bihealth/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bihealth/cbioportal","description":"Fork of bioportal for our changes.","fork":true,"url":"https://api.github.com/repos/bihealth/cbioportal","forks_url":"https://api.github.com/repos/bihealth/cbioportal/forks","keys_url":"https://api.github.com/repos/bihealth/cbioportal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bihealth/cbioportal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bihealth/cbioportal/teams","hooks_url":"https://api.github.com/repos/bihealth/cbioportal/hooks","issue_events_url":"https://api.github.com/repos/bihealth/cbioportal/issues/events{/number}","events_url":"https://api.github.com/repos/bihealth/cbioportal/events","assignees_url":"https://api.github.com/repos/bihealth/cbioportal/assignees{/user}","branches_url":"https://api.github.com/repos/bihealth/cbioportal/branches{/branch}","tags_url":"https://api.github.com/repos/bihealth/cbioportal/tags","blobs_url":"https://api.github.com/repos/bihealth/cbioportal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bihealth/cbioportal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bihealth/cbioportal/git/refs{/sha}","trees_url":"https://api.github.com/repos/bihealth/cbioportal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bihealth/cbioportal/statuses/{sha}","languages_url":"https://api.github.com/repos/bihealth/cbioportal/languages","stargazers_url":"https://api.github.com/repos/bihealth/cbioportal/stargazers","contributors_url":"https://api.github.com/repos/bihealth/cbioportal/contributors","subscribers_url":"https://api.github.com/repos/bihealth/cbioportal/subscribers","subscription_url":"https://api.github.com/repos/bihealth/cbioportal/subscription","commits_url":"https://api.github.com/repos/bihealth/cbioportal/commits{/sha}","git_commits_url":"https://api.github.com/repos/bihealth/cbioportal/git/commits{/sha}","comments_url":"https://api.github.com/repos/bihealth/cbioportal/comments{/number}","issue_comment_url":"https://api.github.com/repos/bihealth/cbioportal/issues/comments{/number}","contents_url":"https://api.github.com/repos/bihealth/cbioportal/contents/{+path}","compare_url":"https://api.github.com/repos/bihealth/cbioportal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bihealth/cbioportal/merges","archive_url":"https://api.github.com/repos/bihealth/cbioportal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bihealth/cbioportal/downloads","issues_url":"https://api.github.com/repos/bihealth/cbioportal/issues{/number}","pulls_url":"https://api.github.com/repos/bihealth/cbioportal/pulls{/number}","milestones_url":"https://api.github.com/repos/bihealth/cbioportal/milestones{/number}","notifications_url":"https://api.github.com/repos/bihealth/cbioportal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bihealth/cbioportal/labels{/name}","releases_url":"https://api.github.com/repos/bihealth/cbioportal/releases{/id}","deployments_url":"https://api.github.com/repos/bihealth/cbioportal/deployments","created_at":"2015-06-22T12:34:13Z","updated_at":"2016-04-20T15:09:01Z","pushed_at":"2016-04-27T07:12:16Z","git_url":"git://github.com/bihealth/cbioportal.git","ssh_url":"git@github.com:bihealth/cbioportal.git","clone_url":"https://github.com/bihealth/cbioportal.git","svn_url":"https://github.com/bihealth/cbioportal","homepage":"","size":162364,"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":"cBioPortal:rc","ref":"rc","sha":"7fd4307c5f4177dee6c2abdb6c5cc7bbd5240481","user":{"login":"cBioPortal","id":9876251,"avatar_url":"https://avatars.githubusercontent.com/u/9876251?v=3","gravatar_id":"","url":"https://api.github.com/users/cBioPortal","html_url":"https://github.com/cBioPortal","followers_url":"https://api.github.com/users/cBioPortal/followers","following_url":"https://api.github.com/users/cBioPortal/following{/other_user}","gists_url":"https://api.github.com/users/cBioPortal/gists{/gist_id}","starred_url":"https://api.github.com/users/cBioPortal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cBioPortal/subscriptions","organizations_url":"https://api.github.com/users/cBioPortal/orgs","repos_url":"https://api.github.com/users/cBioPortal/repos","events_url":"https://api.github.com/users/cBioPortal/events{/privacy}","received_events_url":"https://api.github.com/users/cBioPortal/received_events","type":"Organization","site_admin":false},"repo":{"id":32481543,"name":"cbioportal","full_name":"cBioPortal/cbioportal","owner":{"login":"cBioPortal","id":9876251,"avatar_url":"https://avatars.githubusercontent.com/u/9876251?v=3","gravatar_id":"","url":"https://api.github.com/users/cBioPortal","html_url":"https://github.com/cBioPortal","followers_url":"https://api.github.com/users/cBioPortal/followers","following_url":"https://api.github.com/users/cBioPortal/following{/other_user}","gists_url":"https://api.github.com/users/cBioPortal/gists{/gist_id}","starred_url":"https://api.github.com/users/cBioPortal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cBioPortal/subscriptions","organizations_url":"https://api.github.com/users/cBioPortal/orgs","repos_url":"https://api.github.com/users/cBioPortal/repos","events_url":"https://api.github.com/users/cBioPortal/events{/privacy}","received_events_url":"https://api.github.com/users/cBioPortal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cBioPortal/cbioportal","description":"","fork":false,"url":"https://api.github.com/repos/cBioPortal/cbioportal","forks_url":"https://api.github.com/repos/cBioPortal/cbioportal/forks","keys_url":"https://api.github.com/repos/cBioPortal/cbioportal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cBioPortal/cbioportal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cBioPortal/cbioportal/teams","hooks_url":"https://api.github.com/repos/cBioPortal/cbioportal/hooks","issue_events_url":"https://api.github.com/repos/cBioPortal/cbioportal/issues/events{/number}","events_url":"https://api.github.com/repos/cBioPortal/cbioportal/events","assignees_url":"https://api.github.com/repos/cBioPortal/cbioportal/assignees{/user}","branches_url":"https://api.github.com/repos/cBioPortal/cbioportal/branches{/branch}","tags_url":"https://api.github.com/repos/cBioPortal/cbioportal/tags","blobs_url":"https://api.github.com/repos/cBioPortal/cbioportal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cBioPortal/cbioportal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cBioPortal/cbioportal/git/refs{/sha}","trees_url":"https://api.github.com/repos/cBioPortal/cbioportal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cBioPortal/cbioportal/statuses/{sha}","languages_url":"https://api.github.com/repos/cBioPortal/cbioportal/languages","stargazers_url":"https://api.github.com/repos/cBioPortal/cbioportal/stargazers","contributors_url":"https://api.github.com/repos/cBioPortal/cbioportal/contributors","subscribers_url":"https://api.github.com/repos/cBioPortal/cbioportal/subscribers","subscription_url":"https://api.github.com/repos/cBioPortal/cbioportal/subscription","commits_url":"https://api.github.com/repos/cBioPortal/cbioportal/commits{/sha}","git_commits_url":"https://api.github.com/repos/cBioPortal/cbioportal/git/commits{/sha}","comments_url":"https://api.github.com/repos/cBioPortal/cbioportal/comments{/number}","issue_comment_url":"https://api.github.com/repos/cBioPortal/cbioportal/issues/comments{/number}","contents_url":"https://api.github.com/repos/cBioPortal/cbioportal/contents/{+path}","compare_url":"https://api.github.com/repos/cBioPortal/cbioportal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cBioPortal/cbioportal/merges","archive_url":"https://api.github.com/repos/cBioPortal/cbioportal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cBioPortal/cbioportal/downloads","issues_url":"https://api.github.com/repos/cBioPortal/cbioportal/issues{/number}","pulls_url":"https://api.github.com/repos/cBioPortal/cbioportal/pulls{/number}","milestones_url":"https://api.github.com/repos/cBioPortal/cbioportal/milestones{/number}","notifications_url":"https://api.github.com/repos/cBioPortal/cbioportal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cBioPortal/cbioportal/labels{/name}","releases_url":"https://api.github.com/repos/cBioPortal/cbioportal/releases{/id}","deployments_url":"https://api.github.com/repos/cBioPortal/cbioportal/deployments","created_at":"2015-03-18T20:09:09Z","updated_at":"2016-04-22T12:59:18Z","pushed_at":"2016-04-27T04:37:07Z","git_url":"git://github.com/cBioPortal/cbioportal.git","ssh_url":"git@github.com:cBioPortal/cbioportal.git","clone_url":"https://github.com/cBioPortal/cbioportal.git","svn_url":"https://github.com/cBioPortal/cbioportal","homepage":null,"size":189999,"stargazers_count":53,"watchers_count":53,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":76,"mirror_url":null,"open_issues_count":254,"forks":76,"open_issues":254,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cBioPortal/cbioportal/pulls/1124"},"html":{"href":"https://github.com/cBioPortal/cbioportal/pull/1124"},"issue":{"href":"https://api.github.com/repos/cBioPortal/cbioportal/issues/1124"},"comments":{"href":"https://api.github.com/repos/cBioPortal/cbioportal/issues/1124/comments"},"review_comments":{"href":"https://api.github.com/repos/cBioPortal/cbioportal/pulls/1124/comments"},"review_comment":{"href":"https://api.github.com/repos/cBioPortal/cbioportal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cBioPortal/cbioportal/pulls/1124/commits"},"statuses":{"href":"https://api.github.com/repos/cBioPortal/cbioportal/statuses/82249fb78f5c766020c2debc6cc09f4717c36ae9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":12,"deletions":36,"changed_files":1}}