/// <summary> /// Initializes a new instance of the <see cref="ConfigureBackOfficeCookieOptions" /> class. /// </summary> /// <param name="serviceProvider">The <see cref="IServiceProvider" /></param> /// <param name="umbracoContextAccessor">The <see cref="IUmbracoContextAccessor" /></param> /// <param name="securitySettings">The <see cref="SecuritySettings" /> options</param> /// <param name="globalSettings">The <see cref="GlobalSettings" /> options</param> /// <param name="hostingEnvironment">The <see cref="IHostingEnvironment" /></param> /// <param name="runtimeState">The <see cref="IRuntimeState" /></param> /// <param name="dataProtection">The <see cref="IDataProtectionProvider" /></param> /// <param name="userService">The <see cref="IUserService" /></param> /// <param name="ipResolver">The <see cref="IIpResolver" /></param> /// <param name="systemClock">The <see cref="ISystemClock" /></param> /// <param name="umbracoRequestPaths">The <see cref="UmbracoRequestPaths"/></param> /// <param name="basicAuthService">The <see cref="IBasicAuthService"/></param> public ConfigureBackOfficeCookieOptions( IServiceProvider serviceProvider, IUmbracoContextAccessor umbracoContextAccessor, IOptions <SecuritySettings> securitySettings, IOptions <GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment, IRuntimeState runtimeState, IDataProtectionProvider dataProtection, IUserService userService, IIpResolver ipResolver, ISystemClock systemClock, UmbracoRequestPaths umbracoRequestPaths, IBasicAuthService basicAuthService) { _serviceProvider = serviceProvider; _umbracoContextAccessor = umbracoContextAccessor; _securitySettings = securitySettings.Value; _globalSettings = globalSettings.Value; _hostingEnvironment = hostingEnvironment; _runtimeState = runtimeState; _dataProtection = dataProtection; _userService = userService; _ipResolver = ipResolver; _systemClock = systemClock; _umbracoRequestPaths = umbracoRequestPaths; _basicAuthService = basicAuthService; }
public BasicAuthenticationMiddleware( IRuntimeState runtimeState, IBasicAuthService basicAuthService) { _runtimeState = runtimeState; _basicAuthService = basicAuthService; }
/// <summary> /// Initializes a new instance of the <see cref="BackOfficeCookieManager" /> class. /// </summary> public BackOfficeCookieManager( IUmbracoContextAccessor umbracoContextAccessor, IRuntimeState runtime, UmbracoRequestPaths umbracoRequestPaths, IBasicAuthService basicAuthService) : this(umbracoContextAccessor, runtime, null, umbracoRequestPaths, basicAuthService) { }
public BasicAuthenticationMiddleware( IRuntimeState runtimeState, IBasicAuthService basicAuthService) : this( runtimeState, basicAuthService, StaticServiceProvider.Instance.GetRequiredService <IOptionsMonitor <GlobalSettings> >(), StaticServiceProvider.Instance.GetRequiredService <IHostingEnvironment>() ) { }
public BasicAuthenticationMiddleware( IRuntimeState runtimeState, IBasicAuthService basicAuthService, IOptionsMonitor <GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment) { _runtimeState = runtimeState; _basicAuthService = basicAuthService; _backOfficePath = globalSettings.CurrentValue.GetBackOfficePath(hostingEnvironment); }
/// <summary> /// Initializes a new instance of the <see cref="BackOfficeCookieManager" /> class. /// </summary> public BackOfficeCookieManager( IUmbracoContextAccessor umbracoContextAccessor, IRuntimeState runtime, IEnumerable <string>?explicitPaths, UmbracoRequestPaths umbracoRequestPaths, IBasicAuthService basicAuthService) { _umbracoContextAccessor = umbracoContextAccessor; _runtime = runtime; _explicitPaths = explicitPaths?.ToArray(); _umbracoRequestPaths = umbracoRequestPaths; _basicAuthService = basicAuthService; }
public F1( IBasicAuthService basicAuthService, IBlobStorageClientFactory blobStorageClientFactory, IServiceBusClientFactory serviceBusClientFactory, IConfigurationRoot configuration, ILoggerFactory loggerFactory) { this.basicAuthService = basicAuthService; this.configuration = configuration; this.blobStorageClient = blobStorageClientFactory.Create( new BlobStorageClientContext( this.configuration["StorageConnectionString"], this.configuration["StorageBlobContainerName"])); this.serviceBusClient = serviceBusClientFactory.Create( new ServiceBusClientContext( this.configuration["ServiceBusConnectionString"], this.configuration["ServiceBusQueueName"])); this.logger = loggerFactory.CreateLogger <F1>(); }
public BasicAuthenticationHandler(IOptionsMonitor <AuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock, IBasicAuthService authService) : base(options, logger, encoder, clock) { this.authService = authService ?? throw new ArgumentNullException(nameof(authService)); }