For me, this error occurred in my redefinition of Seed. Because rgnever indicated that the username that does not exist refers to the UserProfile table. To fix this, the user and account must be created before creating OAuth.
So, instead of having my Seed override the ONLY call:
membership.CreateOrUpdateOAuthAccount(provider, providerid, providername);
now it calls:
membership.CreateUserAndAccount(providername, null); membership.CreateOrUpdateOAuthAccount(provider, providerid, providername);
Note. A blank password means that the user cannot log in through the login form, as the password provided will never be zero. I use only OAuth, so for me this is not a problem.
Greg gorman
source share