Example #1
0
 public PersistedGrantService(IPersistedGrantRepository persistedGrantRepository,
                              IPersistedGrantServiceResources persistedGrantServiceResources,
                              IAuditEventLogger auditEventLogger)
 {
     PersistedGrantRepository       = persistedGrantRepository;
     PersistedGrantServiceResources = persistedGrantServiceResources;
     AuditEventLogger = auditEventLogger;
 }
 public PersistedGrantCommandHandler(
     IUnitOfWork uow,
     IMediatorHandler bus,
     INotificationHandler <DomainNotification> notifications,
     IPersistedGrantRepository persistedGrantRepository) : base(uow, bus, notifications)
 {
     _persistedGrantRepository = persistedGrantRepository;
 }
Example #3
0
        public PersistedGrantRepositoryTest()
        {
            var options = new DbContextOptionsBuilder <PersistedGrantDbContext>()
                          .UseInMemoryDatabase("RivaIdentityIdentityServerIntegrationTestsDb").Options;

            _context = new PersistedGrantDbContext(options, new OperationalStoreOptions());
            _persistedGrantRepository = new PersistedGrantRepository(_context);
        }
Example #4
0
 public PersistedGrantAppService(IMapper mapper,
                                 IMediatorHandler bus,
                                 IPersistedGrantRepository persistedGrantRepository)
 {
     _mapper = mapper;
     Bus     = bus;
     _persistedGrantRepository = persistedGrantRepository;
 }
Example #5
0
 public AccountDataConsistencyService(RivaIdentityDbContext rivaIdentityDbContext, PersistedGrantDbContext persistedGrantDbContext,
                                      IAccountRepository accountRepository, IPersistedGrantRepository persistedGrantRepository)
 {
     _rivaIdentityDbContext    = rivaIdentityDbContext;
     _persistedGrantDbContext  = persistedGrantDbContext;
     _accountRepository        = accountRepository;
     _persistedGrantRepository = persistedGrantRepository;
 }
Example #6
0
 public LoggedOutInteractor(ILogoutService logoutService, IPersistedGrantRepository persistedGrantRepository,
                            IClaimsPrincipalService claimsPrincipalService, ISignOutService signOutService, ISchemeService schemeService)
 {
     _logoutService            = logoutService;
     _persistedGrantRepository = persistedGrantRepository;
     _claimsPrincipalService   = claimsPrincipalService;
     _signOutService           = signOutService;
     _schemeService            = schemeService;
 }
Example #7
0
        public UnitOfWork(AppDbContext context)
        {
            this._context = context;

            // repos instantations here...
            Clients         = new ClientRepository(this._context);
            Users           = new UserRepository(this._context);
            UserSessions    = new UserSessionRepository(this._context);
            PersistedGrants = new PersistedGrantRepository(this._context);
        }
Example #8
0
 public PersistedGrantAppService(IMapper mapper,
                                 IMediatorHandler bus,
                                 IEventStoreRepository eventStoreRepository,
                                 IPersistedGrantRepository persistedGrantRepository,
                                 IUserService userService)
 {
     _mapper = mapper;
     Bus     = bus;
     _eventStoreRepository     = eventStoreRepository;
     _persistedGrantRepository = persistedGrantRepository;
     _userService = userService;
 }
Example #9
0
 public PersistedGrantService(IPersistedGrantRepository persistedGrantRepository,
                              IPersistedGrantServiceResources persistedGrantServiceResources)
 {
     _persistedGrantRepository       = persistedGrantRepository;
     _persistedGrantServiceResources = persistedGrantServiceResources;
 }
 public PersistedGrantStore(IPersistedGrantRepository context, ILogger <PersistedGrantStore> logger)
 {
     _context = context;
     _logger  = logger;
 }
 public PersistedGrantService(IPersistedGrantRepository repository)
 {
     _repository = repository;
 }
Example #12
0
 public PersistedGrantStoreAdapter(IPersistedGrantRepository repository)
 {
     this._repository = repository;
 }