Allow team syncing if user creation is disabled
Before this change, if user creation was disabled, team sync would fail to sync over users that had not yet been invited/logged in, because their accounts could not be created. Following this change, team syncing of users not yet in the system will create those user accounts, allowing users to be "auto invited" via team sync. Fixes https://jira.coreos.com/browse/QUAY-910
This commit is contained in:
parent
0c1b13828f
commit
861e81cccd
5 changed files with 41 additions and 17 deletions
|
@ -82,7 +82,8 @@ def sync_team(authentication, stale_team_sync):
|
|||
continue
|
||||
|
||||
# Retrieve the Quay user associated with the member info.
|
||||
(quay_user, err) = authentication.get_and_link_federated_user_info(member_info)
|
||||
(quay_user, err) = authentication.get_and_link_federated_user_info(member_info,
|
||||
internal_create=True)
|
||||
if err is not None:
|
||||
logger.error('Could not link external user %s to an internal user: %s',
|
||||
member_info.username, err,
|
||||
|
|
Reference in a new issue