gitlabhq/gitlabhq — pull request #6307 by dpenezic (2014-02-13 10:30:52+00:00)
Title: Patch for new usename creation when oauth provider(s) is used for athentication to GitLab

Implemented patch solve issue of creating new GitLab username when multiple oauth provider and multiple domain in same oauth provider(Shibboleth) have same uid parts of email address.

For example email address:
pero@gmail.com (Gmail)
pero@facebook.com (Facebook)
pero@pero.hr (Shibboleth)

in previous situation only one first user can be created (uid part of email address is used).

In new patched situation all users may be created. uid attribute is used for username creation, and sign @ is supstitute with sign . .

So new GitLab username will be :
pero.gmail.com
pero.facebook.com
pero.pero.hr