A federated account was always named from its email's local part, so a
person who signed up with GitHub as Darkhorse7stars became "wbin90620" here,
a name they never chose. GitHub keeps a handle of its own: the login, which
the person chose and GitHub holds unique.
- githubExchange carries the login on the federated identity (handle).
- provisionFederatedUser names the account through federatedName: the
handle, lowercased by schema.Username, when it is a usable username and
nobody here holds it (nameTaken, as allocateName asks); otherwise
allocateName's address-derived name and numbered walk, unchanged. A held
handle is not numbered, because "octocat2" reads as another GitHub user.
- Google keeps no handle, so a Google sign-up is named as before; a display
name ("Grace Hopper") is still never a username.
TestProvisionFederatedUser_TakesTheProvidersHandleWhenFree covers a free
login, a held one, an empty one and Google.