I have extended abpuserroles to include Active and Inactive dates so a user will only have a role between these dates.
However I found several places where the user roles are used in the code.
However I can't find the place where the roles are assigned to the user when he logs in.
I need to change the login so that only roles that are active are assigned to a user when he logs in.
Where do I modify this logic?
3 Answer(s)
-
0
What is your UI? (Angular or razor page)
Are you using identity server? -
0
I am using identity server and the ui is angular.
I have currently implemented this by extending the Volo.Abp.Identity.IdentityUser and
updating GetRolesAsync,IsInRoleAsync and GetActiveRoles to filter only the active roles.
I am not sure if this is the best way or not. -
0
hi bhyatz
I think this is ok.