DynamicAuthorization.Mvc.Core by Mohsen Esmailpour

<PackageReference Include="DynamicAuthorization.Mvc.Core" Version="1.0.3" />

 DynamicAuthorizationFilter<TDbContext, TUser, TRole, TKey>

public class DynamicAuthorizationFilter<TDbContext, TUser, TRole, TKey> : IAsyncAuthorizationFilter, IFilterMetadata where TDbContext : IdentityDbContext<TUser, TRole, TKey> where TUser : IdentityUser<TKey> where TRole : IdentityRole<TKey> where TKey : IEquatable<TKey>
public DynamicAuthorizationFilter(DynamicAuthorizationOptions authorizationOptions, TDbContext dbContext, IRoleAccessStore roleAccessStore)