{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/7161","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/7161/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/7161/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/7161/events","html_url":"https://github.com/openshift/origin/pull/7161","id":132490416,"number":7161,"title":"Allow restricting GitHub authentication to an organization","user":{"login":"liggitt","id":980082,"avatar_url":"https://avatars.githubusercontent.com/u/980082?v=3","gravatar_id":"","url":"https://api.github.com/users/liggitt","html_url":"https://github.com/liggitt","followers_url":"https://api.github.com/users/liggitt/followers","following_url":"https://api.github.com/users/liggitt/following{/other_user}","gists_url":"https://api.github.com/users/liggitt/gists{/gist_id}","starred_url":"https://api.github.com/users/liggitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liggitt/subscriptions","organizations_url":"https://api.github.com/users/liggitt/orgs","repos_url":"https://api.github.com/users/liggitt/repos","events_url":"https://api.github.com/users/liggitt/events{/privacy}","received_events_url":"https://api.github.com/users/liggitt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-09T18:09:32Z","updated_at":"2016-02-09T18:34:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/7161","html_url":"https://github.com/openshift/origin/pull/7161","diff_url":"https://github.com/openshift/origin/pull/7161.diff","patch_url":"https://github.com/openshift/origin/pull/7161.patch"},"body":"Fixes #7157\r\nAdds the ability to limit github logins to github users which are members of particular organizations. By default, all github users are allowed to log in using the github IDP.\r\n\r\nExample config to allow members of `myorgname` or `anotherorgname` to log in:\r\n```\r\noauthConfig:\r\n  ...\r\n  identityProviders:\r\n  - name: github \r\n    challenge: false \r\n    login: true \r\n    mappingMethod: claim\r\n    provider:\r\n      apiVersion: v1\r\n      kind: GitHubIdentityProvider\r\n      clientID: ...\r\n      clientSecret: ...\r\n      organizations:\r\n      - myorgname\r\n      - anotherorgname\r\n```"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/181995015","html_url":"https://github.com/openshift/origin/pull/7161#issuecomment-181995015","issue_url":"https://api.github.com/repos/openshift/origin/issues/7161","id":181995015,"user":{"login":"liggitt","id":980082,"avatar_url":"https://avatars.githubusercontent.com/u/980082?v=3","gravatar_id":"","url":"https://api.github.com/users/liggitt","html_url":"https://github.com/liggitt","followers_url":"https://api.github.com/users/liggitt/followers","following_url":"https://api.github.com/users/liggitt/following{/other_user}","gists_url":"https://api.github.com/users/liggitt/gists{/gist_id}","starred_url":"https://api.github.com/users/liggitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liggitt/subscriptions","organizations_url":"https://api.github.com/users/liggitt/orgs","repos_url":"https://api.github.com/users/liggitt/repos","events_url":"https://api.github.com/users/liggitt/events{/privacy}","received_events_url":"https://api.github.com/users/liggitt/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T18:34:00Z","updated_at":"2016-02-09T18:34:00Z","body":"@abhgupta FYI"}}