I'm building a multi-tenant SaaS system where a user in the system is an entity independent of a Tenant entity. IE: Customer 1 can have users User1, User2 associated with it with certain roles and Customer 2 can have User2 and User3 associated with it with certain other roles.
User can switch between tenants by using special menu option or be prompted upfront to pick a tenant when (s)he logs in.
Using Web API and new Identity Framework...
Q: How can I model Roles, if user can switch tenants with a click of a button? There is no limit to how many tenants/customers a user can be associated with, so I can't simply stick all of the possible Tenants/Roles into the Claims collection, since as I understand it, the Claims collection is in the cookie which can be 4k max.
However, I'm not sure what I can do with the built-in Claims infrastructure of Identity Framework