Affected Version: 2.13.
Not all OAuth providers expose user name.
Most notably Google Oauth provider does not.
I made it work in this change: .
This was apparently undone in: .
Later it was extended to support editing, but only a subset of fields
and user name wasn't among them: .
Workaround: Manipulate the database directoy after every user creation:
insert into account_external_ids (account_id, external_id) values (1000000, 'username:jdoe');
Given this workaround, I still tend to set the priority to 0,
as it's not really practical to fix every new account manually
in the database.