public IdentityResourcesController(INotificationHandler <DomainNotification> notifications,
                                    IMediatorHandler mediator,
                                    IIdentityResourceService identityResourceService)
     : base(notifications, mediator)
 {
     _identityResourceService = identityResourceService;
 }
 public IdentityResourceController(IIdentityResourceService service)
 {
     if (service == null)
     {
         throw new ArgumentNullException(nameof(service));
     }
     _service = service;
 }
Example #3
0
 public ClientController(IClientService clientService, IIdentityResourceService identityResourceService,
                         IApiScopeService apiScopeService, ILocalizationService localizationService)
 {
     _clientService           = clientService;
     _identityResourceService = identityResourceService;
     _apiScopeService         = apiScopeService;
     _localizationService     = localizationService;
 }
Example #4
0
 public ResourceStore(IIdentityResourceService identityResourceService,
                      IApiResourceService apiResourceService,
                      ILogger <ResourceStore> logger,
                      IMapper mapper)
 {
     _identityResourceService = identityResourceService;
     _apiResourceService      = apiResourceService;
     _logger = logger;
     _mapper = mapper;
 }
 public ConfigurationController(IIdentityResourceService identityResourceService,
                                IApiResourceService apiResourceService,
                                IClientService clientService,
                                IStringLocalizer <ConfigurationController> localizer,
                                ILogger <ConfigurationController> logger)
     : base(logger)
 {
     _identityResourceService = identityResourceService;
     _apiResourceService      = apiResourceService;
     _clientService           = clientService;
     _localizer = localizer;
 }
 public ConfigurationController(IIdentityResourceService identityResourceService,
                                IApiResourceService apiResourceService,
                                IClientService clientService,
                                IStringLocalizer <ConfigurationController> localizer,
                                ILogger <ConfigurationController> logger,
                                IAuthorizationService authorizationService,
                                IClientManagerService clientManagerService,
                                IdentityServerConfigurationDbContext dbContext)
     : base(logger)
 {
     _identityResourceService = identityResourceService;
     _apiResourceService      = apiResourceService;
     _clientService           = clientService;
     _localizer            = localizer;
     _authorization        = authorizationService;
     _clientManagerService = clientManagerService;
     _dbContext            = dbContext;
 }
Example #7
0
        public AdminApiQuery(IApiResourceService apiResourceService, IClientService clientService, IIdentityResourceService identityResourceService,
                             IPersistedGrantAspNetIdentityService persistedGrantsService, IMapper mapper)
        {
            // Store injected dependencies
            _apiResourceService      = apiResourceService;
            _clientService           = clientService;
            _identityResourceService = identityResourceService;
            _persistedGrantsService  = persistedGrantsService;
            _mapper = mapper;

            // Setup the Queries
            SetupApiResources();
            SetupClients();
            SetupIdentityResources();
            SetupPersistedGrants();
            SetupRoles();
            SetupUsers();
        }
Example #8
0
        public MetaController(IClientService clientService, IIdentityResourceService identityResourceService, IApiResourceService apiResourceService)
        {
            if (clientService == null)
            {
                throw new ArgumentNullException(nameof(clientService));
            }
            if (identityResourceService == null)
            {
                throw new ArgumentNullException(nameof(identityResourceService));
            }
            if (apiResourceService == null)
            {
                throw new ArgumentNullException(nameof(apiResourceService));
            }

            _clientService           = clientService;
            _identityResourceService = identityResourceService;
            _apiResourceService      = apiResourceService;
        }
 public IdentityResourceApiController(IIdentityResourceService identityResourceService,
                                      IMapper mapper) : base(mapper)
 {
     _identityResourceService = identityResourceService;
 }
 public IdentityResourcesController(IIdentityResourceService identityResourceService, IApiErrorResources errorResources, IMapper mapper)
 {
     _identityResourceService = identityResourceService;
     _errorResources          = errorResources;
     _mapper = mapper;
 }
        public AdminApiMutation(IApiResourceService apiResourceService, IClientService clientService, IIdentityResourceService identityResourceService,
                                IPersistedGrantAspNetIdentityService persistedGrantsService, IMapper mapper)
        {
            // Store injected dependencies

            // Setup the Mutexes
            SetupApiResources();
            SetupClients();
            SetupIdentityResources();
            SetupPersistedGrants();
            SetupRoles();
            SetupUsers();
        }
 public CustomResourceStore(IRepository repository, IApiScopeService apiScopeService, IIdentityResourceService identityResourceService)
 {
     _dbRepository           = repository;
     ApiScopeService         = apiScopeService;
     IdentityResourceService = identityResourceService;
 }
 public IdentityResourceController(IIdentityResourceService identityResourceService, ILocalizationService localizationService)
 {
     _identityResourceService = identityResourceService;
     _localizationService     = localizationService;
 }
Example #14
0
 /// <summary>
 /// 初始化身份资源控制器
 /// </summary>
 /// <param name="queryService">身份资源查询服务</param>
 /// <param name="service">身份资源服务</param>
 public IdentityResourceController(IQueryIdentityResourceService queryService, IIdentityResourceService service) : base(queryService)
 {
     QueryService = queryService;
     Service      = service;
 }
 public IdentityResourcesController(IIdentityResourceService service)
 {
     _service = service;
 }
 public IdentityResourceController(IIdentityResourceService identityResourceService)
 {
     IdentityResourceService = identityResourceService ?? throw new System.ArgumentNullException(nameof(identityResourceService));
 }
Example #17
0
 public ResourceController(IApiResourceService apiResourceService, IIdentityResourceService identityResourceService)
 {
     this.apiResourceService      = apiResourceService;
     this.identityResourceService = identityResourceService;
 }
Example #18
0
 public IdentityResourceController(IIdentityResourceService identityResourceService)
 {
     _identityResourceService = identityResourceService;
 }
Example #19
0
 public ClientController(IClientService clientService, IApiScopeService apiScopeService, IIdentityResourceService identityResourceService)
 {
     ClientService           = clientService ?? throw new System.ArgumentNullException(nameof(clientService));
     ApiScopeService         = apiScopeService ?? throw new System.ArgumentNullException(nameof(apiScopeService));
     IdentityResourceService = identityResourceService ?? throw new ArgumentNullException(nameof(identityResourceService));
 }
 public IdentityResourcesController(IIdentityResourceService identityResourceService, IApiErrorResources errorResources)
 {
     _identityResourceService = identityResourceService;
     _errorResources          = errorResources;
 }
 public IdentityResourcesController(IIdentityResourceService identityResourceService)
 {
     this.identityResourceService = identityResourceService ?? throw new ArgumentNullException(nameof(identityResourceService));
 }