diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-11-07 22:29:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-07 22:29:38 -0500 |
commit | 5339ec5a4a2f93eafc7c572989002b496cb05465 (patch) | |
tree | ac6ba5edd7e2504c5f57cdebca8f49a474eaee1a /roles | |
parent | 782e71e8350eed49561c5f4db59e72c838b4b294 (diff) | |
parent | 9ab61485f089a11300492d076f0a1dc862d4ad3b (diff) | |
download | openshift-5339ec5a4a2f93eafc7c572989002b496cb05465.tar.gz openshift-5339ec5a4a2f93eafc7c572989002b496cb05465.tar.bz2 openshift-5339ec5a4a2f93eafc7c572989002b496cb05465.tar.xz openshift-5339ec5a4a2f93eafc7c572989002b496cb05465.zip |
Merge pull request #6046 from mgugino-upstream-stage/fix-github-challenge-auth
Re-add challenge auth verification to github and google
Diffstat (limited to 'roles')
-rw-r--r-- | roles/openshift_master_facts/filter_plugins/openshift_master.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/openshift_master_facts/filter_plugins/openshift_master.py b/roles/openshift_master_facts/filter_plugins/openshift_master.py index 1bea66c26..97a5179e0 100644 --- a/roles/openshift_master_facts/filter_plugins/openshift_master.py +++ b/roles/openshift_master_facts/filter_plugins/openshift_master.py @@ -426,6 +426,12 @@ class GoogleIdentityProvider(IdentityProviderOauthBase): IdentityProviderOauthBase.__init__(self, api_version, idp) self._optional += [['hostedDomain', 'hosted_domain']] + def validate(self): + ''' validate this idp instance ''' + if self.challenge: + raise errors.AnsibleFilterError("|failed provider {0} does not " + "allow challenge authentication".format(self.__class__.__name__)) + class GitHubIdentityProvider(IdentityProviderOauthBase): """ GitHubIdentityProvider @@ -444,6 +450,12 @@ class GitHubIdentityProvider(IdentityProviderOauthBase): self._optional += [['organizations'], ['teams']] + def validate(self): + ''' validate this idp instance ''' + if self.challenge: + raise errors.AnsibleFilterError("|failed provider {0} does not " + "allow challenge authentication".format(self.__class__.__name__)) + class FilterModule(object): ''' Custom ansible filters for use by the openshift_master role''' |