Repository: incubator-airflow
Updated Branches:
  refs/heads/master eb989dcb5 -> 3cef8ed28


limit scope to user email only AIRFLOW-386


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/a1c4cd92
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/a1c4cd92
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/a1c4cd92

Branch: refs/heads/master
Commit: a1c4cd92d536f7bf6617d85df4d197d8adf09d3d
Parents: eb989dc
Author: michlyon <michl...@twitch.tv>
Authored: Mon Aug 1 10:16:22 2016 -0700
Committer: michlyon <michl...@twitch.tv>
Committed: Mon Aug 1 10:16:22 2016 -0700

----------------------------------------------------------------------
 airflow/contrib/auth/backends/github_enterprise_auth.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/a1c4cd92/airflow/contrib/auth/backends/github_enterprise_auth.py
----------------------------------------------------------------------
diff --git a/airflow/contrib/auth/backends/github_enterprise_auth.py 
b/airflow/contrib/auth/backends/github_enterprise_auth.py
index c3eb96b..f9d6426 100644
--- a/airflow/contrib/auth/backends/github_enterprise_auth.py
+++ b/airflow/contrib/auth/backends/github_enterprise_auth.py
@@ -101,7 +101,7 @@ class GHEAuthBackend(object):
             consumer_key=get_config_param('client_id'),
             consumer_secret=get_config_param('client_secret'),
             # need read:org to get team member list
-            request_token_params={'scope': 'user,read:org'},
+            request_token_params={'scope': 'user:email,read:org'},
             base_url=self.ghe_host,
             request_token_url=None,
             access_token_method='POST',

Reply via email to