❔ 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 into2 Replies