Skip to content

Commit

Permalink
Add teams attribute to github identity provider
Browse files Browse the repository at this point in the history
GitHubIdentityProvider provides the ability to authenticate against
GitHub organization teams [1].
This adds the attribute as optional so that users do not get the error
"provider GitHubIdentityProvider contains unknown keys teams".

[1]: https://docs.openshift.com/container-platform/3.5/install_config/configuring_authentication.html#GitHub
  • Loading branch information
David Moreau-Simard committed May 16, 2017
1 parent 80aa02b commit 1a43e7d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ class GitHubIdentityProvider(IdentityProviderOauthBase):
"""
def __init__(self, api_version, idp):
IdentityProviderOauthBase.__init__(self, api_version, idp)
self._optional += [['organizations']]
self._optional += [['organizations'],
['teams']]


class FilterModule(object):
Expand Down

0 comments on commit 1a43e7d

Please sign in to comment.