internal/identity: use email for group identifier for gsuite (#72)

This commit is contained in:
Bobby DeSimone 2019-03-26 20:29:57 -07:00 committed by GitHub
parent b93a8aa79c
commit a39e84cef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,7 +211,7 @@ func (p *GoogleProvider) UserGroups(ctx context.Context, user string) ([]string,
return nil, fmt.Errorf("identity/google: group api request failed %v", err)
}
for _, group := range resp.Groups {
groups = append(groups, group.Name)
groups = append(groups, group.Email)
}
}
return groups, nil