public CustomRoleManager(IKnownPermissionsProvider knownPermissions, IPlatformMemoryCache memoryCache, IRoleStore <Role> store, IEnumerable <IRoleValidator <Role> > roleValidators,
                          ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, ILogger <RoleManager <Role> > logger, IHttpContextAccessor contextAccessor)
     : base(store, roleValidators, keyNormalizer, errors, logger, contextAccessor)
 {
     _knownPermissions = knownPermissions;
     _memoryCache      = memoryCache;
 }
Example #2
0
 public PermissionAuthorizationPolicyProvider(IOptions <AuthorizationOptions> options, IConfiguration configuration, IKnownPermissionsProvider permissionsProvider, IPlatformMemoryCache memoryCache)
     : base(options)
 {
     _configuration       = configuration;
     _permissionsProvider = permissionsProvider;
     _memoryCache         = memoryCache;
 }
 public PlatformExportImportManager(UserManager <ApplicationUser> userManager, RoleManager <Role> roleManager, IKnownPermissionsProvider permissionsProvider, ISettingsManager settingsManager,
                                    IDynamicPropertyService dynamicPropertyService, IDynamicPropertySearchService dynamicPropertySearchService, ILocalModuleCatalog moduleCatalog, IPlatformMemoryCache memoryCache)
 {
     _dynamicPropertyService       = dynamicPropertyService;
     _userManager                  = userManager;
     _roleManager                  = roleManager;
     _settingsManager              = settingsManager;
     _moduleCatalog                = moduleCatalog;
     _memoryCache                  = memoryCache;
     _permissionsProvider          = permissionsProvider;
     _dynamicPropertySearchService = dynamicPropertySearchService;
 }
 public SecurityController(SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, RoleManager <Role> roleManager,
                           IKnownPermissionsProvider permissionsProvider, IUserSearchService userSearchService, IRoleSearchService roleSearchService,
                           IOptions <SecurityOptions> securityOptions, IEmailSender emailSender, IEventPublisher eventPublisher)
 {
     _signInManager       = signInManager;
     _userManager         = userManager;
     _securityOptions     = securityOptions.Value;
     _permissionsProvider = permissionsProvider;
     _roleManager         = roleManager;
     _userSearchService   = userSearchService;
     _roleSearchService   = roleSearchService;
     _emailSender         = emailSender;
     _eventPublisher      = eventPublisher;
 }