Suppose, I have two models:
class Customer {
public GUID CustomerID { get; set; }
public IEnumerable<User> SubscribedUsers { get; set; }
//other fields
}
and
class User {
public GUID UserID { get; set; }
//other fields
}
I want to implement BL with ASP.NET Identity for limitation of auhorization: if user is in SubscribedUsers - Access is granted else - denied.
I dont ask you to implement it for me. Just give me best practice how can I do it and where I can weite this wrap of business logic...
I think I have to implement custom OAuthAuthorizationServerProvider
, have I?