C
C#2y ago
ægteemil

❔ Customizing assigned roles on sign in using SignInManager

Hi. I'm building a multi-tenant application where a user can have access to multiple tenants. My identity is based on ASP.NET Identity. I'm using the built in UserManager, RoleManager and SignInManager. Each tenant can create roles and grant those roles various permissions. Simplified table setup looks like this: I'm struggling with customizing the functionality of SignInManager.SignInAsync , so it only adds the roles a given user has for whichever tenant is signed into
2 Replies
ægteemil
ægteemil2y ago
What I'm trying to do is attach one or more roles to a user on sign in, but only the roles belonging to the current tenant
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.