Пример #1
0
 public IdentityMvcService(IIdentityClient client, LocalStorage localStorage, ILogger <IdentityMvcService> logger, IAuthClient authClient)
 {
     _identityClient = client;
     _localStorage   = localStorage;
     _logger         = logger;
     _authClient     = authClient;
 }
 public AuthController(
     ILogger <AuthController> logger,
     IIdentityClient id4Client)
 {
     this.logger = logger;
     this.auth   = id4Client;
 }
Пример #3
0
 public FriendsController(ILogger <FriendsController> logger, IIdentityClient client, IConfiguration Configuration, IAPIClient taskClient)
 {
     _client            = client;
     _logger            = logger;
     this.Configuration = Configuration;
     _taskClient        = taskClient;
 }
Пример #4
0
 public AccountController(IMyTokenService tokenservice, IHttpContextAccessor context, IConfiguration configuration, IIdentityClient client)
 {
     _context      = context;
     Configuration = configuration;
     _tokenservice = tokenservice;
     _client       = client;
 }
Пример #5
0
 public MyTaskController(ILogger <MyTaskController> logger, IAPIClient client, IMyTaskFilterService filterService, IIdentityClient identityClient)
 {
     _client         = client;
     _logger         = logger;
     _filterService  = filterService;
     _identityClient = identityClient;
 }
Пример #6
0
 public AuthController(
     ILogger <AuthController> logger,
     IIdentityClient idsrvClient)
 {
     this.logger      = logger;
     this.idsrvClient = idsrvClient;
 }
 public TaskFriendGrants(IHttpContextAccessor httpcontext, IUnitOfWork context, IMailService mailService, IIdentityClient client, IMyTokenService tokenService)
 {
     _httpcontext  = httpcontext;
     this.context  = context;
     _mailService  = mailService;
     _tokenService = tokenService;
     _client       = client;
 }
 public FriendTaskService(IHttpContextAccessor httpcontext, ApplicationDbContext context, IFileService fileService, IMyTokenService tokenService, IIdentityClient client)
 {
     _httpcontext  = httpcontext;
     this.context  = context;
     _fileService  = fileService;
     _tokenService = tokenService;
     _client       = client;
 }
 public ExtendUserSubscriptionCommandHandler(
     IBus bus,
     IIdentityClient identityClient,
     IQueryProcessor queryProcessor)
 {
     _bus            = bus ?? throw new ArgumentNullException(nameof(bus));
     _identityClient = identityClient ?? throw new ArgumentNullException(nameof(identityClient));
     _queryProcessor = queryProcessor ?? throw new ArgumentNullException(nameof(queryProcessor));
 }
Пример #10
0
 public HomeController(IAdvertApiClient advertApiClient, ICategoryApiClient categoryApiClient,
                       IIdentityClient identityClient,
                       IMapper mapper)
 {
     _mapper            = mapper;
     _advertApiClient   = advertApiClient;
     _categoryApiClient = categoryApiClient;
     _identityClient    = identityClient;
 }
Пример #11
0
 public ContactModel(
     IAnnouncementClient apiAnnouncementClient,
     IIdentityClient identityClient,
     IFluentEmail emailSender)
 {
     _apiAnnouncementClient = apiAnnouncementClient;
     _identityClient        = identityClient;
     _emailSender           = emailSender;
 }
 public AccessTokenValidator(
     IOptions <AppSettings> configuration,
     ILogger <AccessTokenValidator> logger,
     IIdentityClient idsrvClient)
 {
     this.appSettings = configuration.Value;
     this.logger      = logger;
     this.idsrvClient = idsrvClient;
 }
Пример #13
0
 public DeleteUserCommandHandler(
     ApplicationConfiguration configurationOptions,
     IIdentityClient identityClient,
     IQueryProcessor queryProcessor)
 {
     _connectionString = configurationOptions.Postgres;
     _identityClient   = identityClient;
     _queryProcessor   = queryProcessor;
 }
 public BaseProcessor(IServiceProvider serviceProvider, ILogger <BaseProcessor> logger, IRetryHelper retryHelper)
 {
     _identityClient       = (IIdentityClient)serviceProvider.GetService(typeof(IIdentityClient));
     _transactionClient    = (ITransactionClient)serviceProvider.GetService(typeof(ITransactionClient));
     _cacheRepository      = (ICacheRepository <AccountStatement>)serviceProvider.GetService(typeof(ICacheRepository <AccountStatement>));
     _documentRepository   = (IDocumentRepository <AccountStatement>)serviceProvider.GetService(typeof(IDocumentRepository <AccountStatement>));
     _cacheExpiryInSeconds = ((IOptions <CacheExpiry>)serviceProvider.GetService(typeof(IOptions <CacheExpiry>))).Value.ExpiryInSeconds;
     _logger      = logger ?? throw new ArgumentNullException(nameof(logger));
     _retryHelper = retryHelper ?? throw new ArgumentNullException(nameof(retryHelper));
 }
        public TriggerProcessor(ICommandPublisher commandPublisher, IOptions <QueueNames> options, IIdentityClient identityClient)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            _commandPublisher = commandPublisher ?? throw new ArgumentNullException(nameof(commandPublisher));
            _identityClient   = identityClient ?? throw new ArgumentNullException(nameof(identityClient));

            _queueNames = options.Value;
        }
 public SendResetPasswordLinkCommandHandler(
     ICaptchaService captchaService,
     IBus bus,
     IIdentityClient identityClient,
     IQueryProcessor queryProcessor,
     OAuthConfiguration oAuthConfiguration)
 {
     _captchaService     = captchaService ?? throw new ArgumentNullException(nameof(captchaService));
     _bus                = bus ?? throw new ArgumentNullException(nameof(bus));
     _identityClient     = identityClient ?? throw new ArgumentNullException(nameof(identityClient));
     _queryProcessor     = queryProcessor ?? throw new ArgumentNullException(nameof(queryProcessor));
     _oAuthConfiguration = oAuthConfiguration;
 }
        /// <summary>
        /// クライアント作成
        /// </summary>
        public void CreateClient()
        {
            ClientConfig = new ClientConfig
            {
                TenancyId            = OciSetting.TenancyId,
                UserId               = OciSetting.UserId,
                Fingerprint          = OciSetting.Fingerprint,
                PrivateKey           = OciSetting.KeyFilePath,
                PrivateKeyPassphrase = OciSetting.PassPhrase
            };
            ThreadSafeSigner threadSafeSigner = new ThreadSafeSigner(new OciSigner(ClientConfig));

            IdentityClient      = new IdentityClient(ClientConfig);
            ObjectStorageClient = new ObjectStorageClient(ClientConfig, threadSafeSigner);
        }
Пример #18
0
 public CreateUserCommandHandler(
     ICaptchaService captchaService,
     IBus bus,
     IIdentityClient identityClient,
     IQueryProcessor queryProcessor,
     IApplicationDbContextFactory dbContextFactory,
     ISabitClient sabitClient)
 {
     _captchaService   = captchaService ?? throw new ArgumentNullException(nameof(captchaService));
     _bus              = bus ?? throw new ArgumentNullException(nameof(bus));
     _identityClient   = identityClient ?? throw new ArgumentNullException(nameof(identityClient));
     _queryProcessor   = queryProcessor;
     _dbContextFactory = dbContextFactory;
     _sabitClient      = sabitClient;
 }
Пример #19
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="dataSession">Active data session</param>
        public AuthenticationServiceLayer(IDataSession dataSession)
            : base(dataSession)
        {
            //Inizializzazioni
            _userRepository                = dataSession.ResolveRepository <IShooterRepository>();
            _permissionRepository          = dataSession.ResolveRepository <IPermissionRepository>();
            _permissionRoleRepository      = dataSession.ResolveRepository <IPermissionsRoleRepository>();
            _roleRepository                = dataSession.ResolveRepository <IRoleRepository>();
            _userRoleRepository            = dataSession.ResolveRepository <IUserRoleRepository>();
            _userPermissionRepository      = dataSession.ResolveRepository <IUserPermissionRepository>();
            _permissionGroupRepository     = dataSession.ResolveRepository <IPermissionGroupRepository>();
            _userPermissionGroupRepository = dataSession.ResolveRepository <IUserPermissionGroupRepository>();
            _permissionGroupRoleRepository = dataSession.ResolveRepository <IPermissionGroupRoleRepository>();

            _identityClient = ServiceResolver.Resolve <IIdentityClient>();
            _cache          = ServiceResolver.Resolve <ISemperPrecisMemoryCache>();
        }
Пример #20
0
 public DataSharingController(IIdentityClient identityClient, IUserContext userContext)
 {
     _identityClient = identityClient;
     _userContext    = userContext;
 }
Пример #21
0
 public LoginModel(IIdentityClient identityClient)
 {
     _identityClient = identityClient;
 }
Пример #22
0
 public ApplicationController(IBus bus, IIdentityClient identityClient)
 {
     _bus            = bus;
     _identityClient = identityClient;
 }
Пример #23
0
 public Authenticator(IIdentityClient client, string token, string symbol)
 {
     this.client = client;
     this.Token  = token;
     this.Symbol = symbol;
 }
 public ProfileController(ILogger <ProfileController> logger, IIdentityClient client)
 {
     _client = client;
     _logger = logger;
 }
 public UpdateUserByAdminCommandHandler(
     IIdentityClient identityClient, IApplicationDbContextFactory dbContextFactory)
 {
     _identityClient   = identityClient ?? throw new ArgumentNullException(nameof(identityClient));
     _dbContextFactory = dbContextFactory;
 }
Пример #26
0
 public SabitClient(HttpClient httpClient, IIdentityClient identityClient)
 {
     _httpClient     = httpClient;
     _identityClient = identityClient;
 }
Пример #27
0
 public UserService(IIdentityClient client,
                    IAuthenticationServiceFactory factory)
 {
     _client = client;
     _authenticationService = factory.GetAuthorizationService(AuthorizationType.IdentityAuthentication);
 }
Пример #28
0
 public ProductController(ISolutionApiClient solutionApiClient, IBillingApiClient billingApiClient, IIdentityClient identityClient)
 {
     _solutionApiClient = solutionApiClient;
     _billingApiClient  = billingApiClient;
     _identityClient    = identityClient;
 }
Пример #29
0
 public RegisterModel(IIdentityClient identityClient)
 {
     _identityClient = identityClient;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticatingDelegatingHandler{T}"/> class.
 /// </summary>
 /// <param name="identityClient">An implementation of IIdentityClient.</param>
 public AuthenticatingDelegatingHandler(T identityClient)
 {
     this.identityClient = identityClient ?? throw new ArgumentNullException(nameof(identityClient));
 }