public EditionFeatureManagementProvider( IFeatureManagementStore store, ICurrentPrincipalAccessor principalAccessor) : base(store) { PrincipalAccessor = principalAccessor; }
public BasicDynamicEntityOperationAuthorizationHandler( IPermissionChecker permissionChecker, ICurrentPrincipalAccessor currentPrincipalAccessor) { _permissionChecker = permissionChecker; _currentPrincipalAccessor = currentPrincipalAccessor; }
public PermissionChecker( ICurrentPrincipalAccessor principalAccessor, IPermissionDefinitionManager permissionDefinitionManager, IPermissionValueProviderManager permissionValueProviderManager) { PrincipalAccessor = principalAccessor; PermissionDefinitionManager = permissionDefinitionManager; PermissionValueProviderManager = permissionValueProviderManager; }
public ZenAuthorizeFilter(ICurrentPrincipalAccessor currentPrincipalAccessor, IHttpContextAccessor httpContextAccessor, IZenAuthenticationService zenService) { _currentPrincipalAccessor = currentPrincipalAccessor; _httpContextAccessor = httpContextAccessor; _zenService = zenService; Order = int.MinValue; }
/// <summary> /// 初始化一个<see cref="UserLoginLogMessageEventHandler"/>类型的实例 /// </summary> public UserLoginLogMessageEventHandler(IAdminUnitOfWork unitOfWork , IUserLoginLogManager userLoginLogManager , ICurrentPrincipalAccessor currentPrincipalAccessor , ICurrentUser currentUser) { UnitOfWork = unitOfWork; UserLoginLogManager = userLoginLogManager; CurrentPrincipalAccessor = currentPrincipalAccessor; CurrentUser = currentUser; }
/// <summary> /// /// </summary> /// <param name="auditingHelper"></param> /// <param name="auditingManager"></param> /// <param name="options"></param> /// <param name="principalAccessor"></param> public AuditingInterceptor(IAuditingHelper auditingHelper, IAuditingManager auditingManager, IOptions <AuditingOptions> options, ICurrentPrincipalAccessor principalAccessor ) { _auditingHelper = auditingHelper; _auditingManager = auditingManager; _principalAccessor = principalAccessor; _options = options.Value; }
public IdentitySecurityLogManager( ISecurityLogManager securityLogManager, IdentityUserManager userManager, ICurrentPrincipalAccessor currentPrincipalAccessor, IUserClaimsPrincipalFactory <IdentityUser> userClaimsPrincipalFactory, ICurrentUser currentUser) { SecurityLogManager = securityLogManager; UserManager = userManager; CurrentPrincipalAccessor = currentPrincipalAccessor; UserClaimsPrincipalFactory = userClaimsPrincipalFactory; CurrentUser = currentUser; }
/// <summary> /// /// </summary> /// <param name="auditSerializer"></param> /// <param name="options"></param> /// <param name="auditingStore"></param> /// <param name="principalAccessor"></param> public AuditingHelper( IAuditSerializer auditSerializer, IOptions <AuditingOptions> options, IAuditingStore auditingStore, ICurrentPrincipalAccessor principalAccessor ) { Options = options.Value; AuditSerializer = auditSerializer; AuditingStore = auditingStore; Logger = NullLogger <AuditingHelper> .Instance; _principalAccessor = principalAccessor; }
public PermissionChecker( ICurrentPrincipalAccessor principalAccessor, IPermissionDefinitionManager permissionDefinitionManager, ICurrentTenant currentTenant, IPermissionValueProviderManager permissionValueProviderManager, ISimpleStateCheckerManager <PermissionDefinition> stateCheckerManager) { PrincipalAccessor = principalAccessor; PermissionDefinitionManager = permissionDefinitionManager; CurrentTenant = currentTenant; PermissionValueProviderManager = permissionValueProviderManager; StateCheckerManager = stateCheckerManager; }
public PermissionChecker( IOptions <RocketPermissionOptions> options, ICurrentPrincipalAccessor principalAccessor, IPermissionDefinitionManager permissionDefinitionManager, ICurrentTenant currentTenant, IPermissionValueProviderManager permissionValueProviderManager) { Options = options.Value; PrincipalAccessor = principalAccessor; PermissionDefinitionManager = permissionDefinitionManager; CurrentTenant = currentTenant; PermissionValueProviderManager = permissionValueProviderManager; }
public AbpUserClaimsPrincipalFactory( UserManager <IdentityUser> userManager, RoleManager <IdentityRole> roleManager, IOptions <IdentityOptions> options, ICurrentPrincipalAccessor currentPrincipalAccessor, IAbpClaimsPrincipalFactory abpClaimsPrincipalFactory) : base( userManager, roleManager, options) { CurrentPrincipalAccessor = currentPrincipalAccessor; AbpClaimsPrincipalFactory = abpClaimsPrincipalFactory; }
public PermissionChecker( IOptions <PermissionOptions> options, IServiceProvider serviceProvider, ICurrentPrincipalAccessor principalAccessor, IPermissionDefinitionManager permissionDefinitionManager) { PrincipalAccessor = principalAccessor; PermissionDefinitionManager = permissionDefinitionManager; Options = options.Value; _lazyProviders = new Lazy <List <IPermissionValueProvider> >(() => Options.ValueProviders .Select(c => serviceProvider.GetRequiredService(c) as IPermissionValueProvider) .ToList(), true); }
public AuthorizationService( IAuthorizationPolicyProvider policyProvider, IAuthorizationHandlerProvider handlers, ILogger <AuthorizationService> logger, IAuthorizationHandlerContextFactory contextFactory, IAuthorizationEvaluator evaluator, IOptions <AuthorizationOptions> options, ICurrentPrincipalAccessor currentPrincipalAccessor, IServiceProvider serviceProvider) : base(policyProvider, handlers, logger, contextFactory, evaluator, options) { _currentPrincipalAccessor = currentPrincipalAccessor; ServiceProvider = serviceProvider; }
public PermissionChecker( IOptions <PermissionOptions> options, ICurrentPrincipalAccessor currentPrincipalAccessor, IPermissionDefinitionManager permissionDefinitionManager, IServiceProvider serviceProvider) { Options = options.Value; CurrentPrincipalAccessor = currentPrincipalAccessor; PermissionDefinitionManager = permissionDefinitionManager; ServiceProvider = serviceProvider; _lazyProviders = new Lazy <List <IPermissionGrantingProvider> >( () => Options .GrantingProviders. Select(t => serviceProvider.GetService(t) as IPermissionGrantingProvider) .ToList(), true); }
/// <summary> /// /// </summary> /// <param name="auditSerializer"></param> /// <param name="options"></param> /// <param name="clock"></param> /// <param name="auditingStore"></param> /// <param name="logger"></param> /// <param name="principalAccessor"></param> /// <param name="serviceProvider"></param> public AuditingHelper( IAuditSerializer auditSerializer, IOptions <AuditingOptions> options, IClock clock, IAuditingStore auditingStore, ILogger <AuditingHelper> logger, ICurrentPrincipalAccessor principalAccessor, IServiceProvider serviceProvider) { Options = options.Value; AuditSerializer = auditSerializer; Clock = clock; AuditingStore = auditingStore; Logger = logger; _principalAccessor = principalAccessor; ServiceProvider = serviceProvider; }
public MenuGrantAppService( IMenuRepository menuRepository, IMenuManager menuManager, IPermissionAppService permissionAppService, IOptions <PermissionManagementOptions> options, IAuthorizationService authorizationService, IAbpAuthorizationPolicyProvider abpAuthorizationPolicyProvider, IUserMenuGrantChecker userMenuGrantChecker, ICurrentPrincipalAccessor principalAccessor ) { _menuRepository = menuRepository; _menuManager = menuManager; _permissionAppService = permissionAppService; _authorizationService = authorizationService; _abpAuthorizationPolicyProvider = abpAuthorizationPolicyProvider; _userMenuGrantChecker = userMenuGrantChecker; _principalAccessor = principalAccessor; _options = options.Value; }
public NotificationDefinitionManager( IOptions <NotificationOptions> options, IServiceProvider serviceProvider, IFeatureChecker featureChecker, ICurrentPrincipalAccessor currentPrincipalAccessor, IAuthorizationService authorizationService, ICurrentTenant currentTenant, ICurrentUser currentUser, INotificationStore notificationStore ) { ServiceProvider = serviceProvider; Options = options.Value; FeatureChecker = featureChecker; AuthorizationService = authorizationService; CurrentPrincipalAccessor = currentPrincipalAccessor; CurrentTenant = currentTenant; CurrentUser = currentUser; NotificationStore = notificationStore; NotificationDefinitions = new Lazy <IDictionary <string, NotificationDefinition> >(CreateNotificationDefinitions, true); }
public LinkLoginExtensionGrantValidator( ITokenValidator tokenValidator, IdentityLinkUserManager identityLinkUserManager, ICurrentTenant currentTenant, ICurrentUser currentUser, IdentityUserManager userManager, ICurrentPrincipalAccessor currentPrincipalAccessor, IdentitySecurityLogManager identitySecurityLogManager, ILogger <LinkLoginExtensionGrantValidator> logger, IStringLocalizer <AbpIdentityServerResource> localizer) { TokenValidator = tokenValidator; IdentityLinkUserManager = identityLinkUserManager; CurrentTenant = currentTenant; CurrentUser = currentUser; UserManager = userManager; CurrentPrincipalAccessor = currentPrincipalAccessor; IdentitySecurityLogManager = identitySecurityLogManager; Logger = logger; Localizer = localizer; }
public AuthorizationService(ICurrentPrincipalAccessor currentPrincipalAccessor, IPermissionChecker permissionChecker) { _currentPrincipalAccessor = currentPrincipalAccessor; _permissionChecker = permissionChecker; }
public EditionFeatureValueProvider(IFeatureStore featureStore, ICurrentPrincipalAccessor principalAccessor) : base(featureStore) { PrincipalAccessor = principalAccessor; }
public static IDisposable Change(this ICurrentPrincipalAccessor currentPrincipalAccessor, Claim claim) { return(currentPrincipalAccessor.Change(new[] { claim })); }
public static IDisposable Change(this ICurrentPrincipalAccessor currentPrincipalAccessor, ClaimsIdentity claimsIdentity) { return(currentPrincipalAccessor.Change(new ClaimsPrincipal(claimsIdentity))); }
public static IDisposable Change(this ICurrentPrincipalAccessor currentPrincipalAccessor, IEnumerable <Claim> claims) { return(currentPrincipalAccessor.Change(new ClaimsIdentity(claims))); }
public CurrentPrincipalAccessor_Test() { _currentPrincipalAccessor = GetRequiredService <ICurrentPrincipalAccessor>(); }
public PermissionStateProvider_Tests() { PermissionStateManager = GetRequiredService <IPermissionStateManager>(); PermissionDefinitionManager = GetRequiredService <IPermissionDefinitionManager>(); CurrentPrincipalAccessor = GetRequiredService <ICurrentPrincipalAccessor>(); }
public PermissionAppService_Tests() { _permissionAppService = GetRequiredService <IPermissionAppService>(); _permissionGrantRepository = GetRequiredService <IPermissionGrantRepository>(); _currentPrincipalAccessor = GetRequiredService <ICurrentPrincipalAccessor>(); }
public AlwaysAllowAuthorizationService(IServiceProvider serviceProvider, ICurrentPrincipalAccessor currentPrincipalAccessor) { ServiceProvider = serviceProvider; _currentPrincipalAccessor = currentPrincipalAccessor; }
public CurrentUser(ICurrentPrincipalAccessor principalAccessor) { _principalAccessor = principalAccessor; }
public CurrentClient(ICurrentPrincipalAccessor principalAccessor) { _principalAccessor = principalAccessor; }
public CustomerApplicationService(IRepository <Domain.Entities.Customer> customerRepository, ICurrentPrincipalAccessor accessor) { _customerRepository = customerRepository; _accessor = accessor; }