How to associate one user to multiple dealerships with specific role at each dealership in ASP.NET Identity? -
in asp.net identity, how associate 1 user multiple locations (let's dealerships) , assign specific role user @ each dealership?
claims
you can define claim user, key-value pair. so, instance, have dealership number claim, , have dealership number claim, role value. or have dealership1-role , value administrator, or whatever want do.
see https://docs.microsoft.com/en-us/aspnet/core/security/authorization/claims
another option create specific roles each dealership. ie. dealer1-admin , assign user.
Comments
Post a Comment