loadUserProfile will return roles of last user if current user has no roles assigned #580
Labels
bug
For tagging faulty or unexpected behavior.
investigation-needed
Indication that the maintainer or involved community members may need to investigate more.
This seems to be related to issue #514.
I am using your library against Identity Server 4 using resource owner password grant flow.
Identity Server is running against ASP.Net Core Identity.
I have two roles, user and administrator.
User A is assigned to roles user and administrator.
User B is assigned to roles user.
User C is assigned to no role at all.
If User A logs on, I can see the user info response in fiddler containing both roles >>"role":["user","administrator"]<<. I see the same in userInfo object returned by loadUserProfile().
Subsequently, User C logs on. The user info response in fiddler contains no role at all. However, the userInfo object returned by loadUserProfile() still contains both roles.
The text was updated successfully, but these errors were encountered: