You can try to add it to the Program.cs
class. Then check the ICurrentUser
.
Have you set claim types?
AbpClaimTypes.UserName = JwtClaimTypes.PreferredUserName;
AbpClaimTypes.Name = JwtClaimTypes.GivenName;
AbpClaimTypes.SurName = JwtClaimTypes.FamilyName;
AbpClaimTypes.UserId = JwtClaimTypes.Subject;
AbpClaimTypes.Role = JwtClaimTypes.Role;
AbpClaimTypes.Email = JwtClaimTypes.Email;
hi joey73
Is your problem solved?
Can the problem be reproduced by connecting to the remote database locally?
ok, Please share the Debug Logs during your login process.
hi
var roles = await IdentityUserManager.GetRoleNamesAsync(user).ConfigureAwait(false);
Does the roles
have any values?
Please share the Logs
during your login process.
hi
it takes some time.
What do you mean by this? Can you explain it in detail?
Thanks.
Good news.