public AuthorizationPolicyValidatorFixture()
 {
     IdentityModelEventSource.ShowPII = true;
     _resourceSetRepositoryStub       = new Mock <IResourceSetRepository>();
     _clientStoreStub              = new Mock <IClientStore>();
     _inMemoryJwksRepository       = new InMemoryJwksRepository();
     _authorizationPolicyValidator = new AuthorizationPolicyValidator(
         _inMemoryJwksRepository,
         _resourceSetRepositoryStub.Object,
         new Mock <IEventPublisher>().Object);
 }
Пример #2
0
 public UmaTokenActions(
     ITicketStore ticketStore,
     RuntimeSettings configurationService,
     IClientStore clientStore,
     IScopeStore scopeRepository,
     ITokenStore tokenStore,
     IResourceSetRepository resourceSetRepository,
     IJwksStore jwksStore,
     IEventPublisher eventPublisher,
     ILogger logger)
 {
     _ticketStore                  = ticketStore;
     _configurationService         = configurationService;
     _authorizationPolicyValidator = new AuthorizationPolicyValidator(
         jwksStore,
         resourceSetRepository,
         eventPublisher);
     _authenticateClient = new AuthenticateClient(clientStore, jwksStore);
     _jwtGenerator       = new JwtGenerator(clientStore, scopeRepository, jwksStore, logger);
     _tokenStore         = tokenStore;
     _eventPublisher     = eventPublisher;
     _logger             = logger;
 }