Base solution for your next web application

Activities of "Mitch"

Thanks for the quick response. The project is MVC Core jQuery 11.3 (not Angular!)

We're using ASP.Net ZERO Core MVC 11.3.

We have been using IsInRoleAsync without issue, until we needed to return a Role that isn't one of the defaults ie Admin or User.

We were looking for the role "Manager", but we noticed it wasn't working, so we checked and found it is returning the value "97d5491d35b440edbb5fc33169f91d1b" instead of "Manager".

Somehow, new roles that are added to the database have "GUID-like" values in the Name and NormalizedName fields such as 97d5491d35b440edbb5fc33169f91d1b and 97D5491D35B440EDBB5FC33169F91D1B.

However, Admin and User have Admin and ADMIN and User and USER as expected in the Name and NormalizedName fields.

Any ideas why this is happening to newly created Roles? Is it by design? If not, was this fixed in a later version?

Thanks for confirming.

So how do I find out what Roles the current user has assigned if IsInRoleAsync returns a random GUID value? It only seems to work for Admin and User as they don't use GUID's for the name.

I want to check for the Role "Manager" in the Current User

Showing 101 to 103 of 103 entries