Esempio n. 1
0
 public AuthenticationMiddleware(RequestDelegate next,
                                 IApplicationBuilder app,
                                 IRequestScopedDataRepository requestScopedDataRepository,
                                 IAuthenticationHandlerFactory authHandlerFactory,
                                 IOcelotLoggerFactory loggerFactory)
     : base(requestScopedDataRepository)
 {
     _next = next;
     _authHandlerFactory = authHandlerFactory;
     _app    = app;
     _logger = loggerFactory.CreateLogger <AuthenticationMiddleware>();
 }
Esempio n. 2
0
 public WebhookResponseHandler(
     IEventHandlerFactory eventHandlerFactory,
     IHttpClientFactory httpClientFactory,
     IRequestBuilder requestBuilder,
     IAuthenticationHandlerFactory authenticationHandlerFactory,
     IRequestLogger requestLogger,
     IBigBrother bigBrother,
     SubscriberConfiguration subscriberConfiguration)
     : base(httpClientFactory, authenticationHandlerFactory, requestBuilder, requestLogger, bigBrother, subscriberConfiguration)
 {
     _eventHandlerFactory     = eventHandlerFactory;
     _subscriberConfiguration = subscriberConfiguration;
 }
 public GenericWebhookHandler(
     IHttpClientFactory httpClientFactory,
     IAuthenticationHandlerFactory authenticationHandlerFactory,
     IRequestBuilder requestBuilder,
     IRequestLogger requestLogger,
     IBigBrother bigBrother,
     WebhookConfig webhookConfig)
 {
     BigBrother     = bigBrother;
     RequestBuilder = requestBuilder;
     _requestLogger = requestLogger;
     WebhookConfig  = webhookConfig;
     _authenticationHandlerFactory = authenticationHandlerFactory;
     HttpClientFactory             = httpClientFactory;
 }
Esempio n. 4
0
 public EventHandlerFactory(
     IBigBrother bigBrother,
     IIndex <string, SubscriberConfiguration> subscriberConfigurations,
     IIndex <string, WebhookConfig> webHookConfig,
     IHttpClientFactory httpClientFactory,
     IAuthenticationHandlerFactory authenticationHandlerFactory,
     IRequestLogger requestLogger,
     IRequestBuilder requestBuilder)
 {
     _bigBrother = bigBrother;
     _subscriberConfigurations     = subscriberConfigurations;
     _httpClientFactory            = httpClientFactory;
     _requestLogger                = requestLogger;
     _requestBuilder               = requestBuilder;
     _authenticationHandlerFactory = authenticationHandlerFactory;
     _webHookConfig                = webHookConfig;
 }
 public AuthenticationHandlerFactoryTests()
 {
     _app     = new Mock <IApplicationBuilder>();
     _creator = new Mock <IAuthenticationHandlerCreator>();
     _authenticationHandlerFactory = new AuthenticationHandlerFactory(_creator.Object);
 }
Esempio n. 6
0
 public BindRequestCommandHandler(ILDAPEntryQueryStore ldapEntryQueryStore, IAuthenticationHandlerFactory authenticationHandlerFactory)
 {
     _ldapEntryQueryStore          = ldapEntryQueryStore;
     _authenticationHandlerFactory = authenticationHandlerFactory;
 }