What I\'m trying to do is the following:
Setup login/logout using Identity Core, with the Primary Key as Int. I followed the following article in the ASP.NET Core Docume
3 years later I have stubmled upon this issue. Recreating database didn't help. I have changed as above the PK
from string
to int
and UserManager
have been creating records successfully but then the SignInManager
have been failing to sign in the newly created user with the same error.
Solution:
I have found out that just assiging a role to the user upon creation solved the issue.
await userManager.AddToRoleAsync(user, UserRoles.Basic.ToString());
Dropped and recreated the database ... pretty obvious.
//Solved.