[sysadmin-bin] New auth provider: gitlab.com



commit 13e0ac9c8160e8105982e0603491a4c745a54b72
Author: Andrea Veri <averi redhat com>
Date:   Tue Nov 14 16:12:17 2017 +0100

    New auth provider: gitlab.com

 git/gnome-post-receive-email |    2 +-
 gitlab/fetch-username.py     |    2 +-
 gitlab/gitlab-operations.py  |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/git/gnome-post-receive-email b/git/gnome-post-receive-email
index 6ffd43f..227fdda 100755
--- a/git/gnome-post-receive-email
+++ b/git/gnome-post-receive-email
@@ -133,7 +133,7 @@ class RefChange(object):
             if len(user.attributes['identities']) > 0:
                 for index, _ in enumerate(user.attributes['identities']):
                     provider = user.attributes['identities'][index]['provider']
-                    if provider not in ('google_oauth2', 'github'):
+                    if provider not in ('google_oauth2', 'github', 'gitlab'):
                         username = 
user.attributes['identities'][index]['extern_uid'].split(',')[0].replace('uid=', '')
 
                 global user_fullname
diff --git a/gitlab/fetch-username.py b/gitlab/fetch-username.py
index 214e7a3..c30cfa1 100755
--- a/gitlab/fetch-username.py
+++ b/gitlab/fetch-username.py
@@ -17,7 +17,7 @@ def fetch_username():
     if len(user.attributes['identities']) > 0:
       for index, _ in enumerate(user.attributes['identities']):
           provider = user.attributes['identities'][index]['provider']
-          if provider not in ('google_oauth2', 'github'):
+          if provider not in ('google_oauth2', 'github', 'gitlab'):
               username = user.attributes['identities'][index]['extern_uid'].split(',')[0].replace('uid=', '')
 
               identity_found = True
diff --git a/gitlab/gitlab-operations.py b/gitlab/gitlab-operations.py
index 30bb4fb..8b76ea1 100755
--- a/gitlab/gitlab-operations.py
+++ b/gitlab/gitlab-operations.py
@@ -133,7 +133,7 @@ for project in maints:
         if len(user.attributes['identities']) > 0:
             for index, _ in enumerate(user.attributes['identities']):
                 provider = user.attributes['identities'][index]['provider']
-                if provider not in ('google_oauth2', 'github'):
+                if provider not in ('google_oauth2', 'github', 'gitlab'):
                     
members_dict[user.attributes['identities'][index]['extern_uid'].split(',')[0].replace('uid=', '')] = 
user.attributes['id']
                     identity_found = True
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]