/// <summary>Initializes a new instance of the <see cref="UserService" /> class.</summary> /// <param name="jwtUtil">The JWT utility.</param> /// <param name="vaultUtil">The vault utility.</param> /// <param name="client">The client.</param> /// <param name="fileUtil">The file utility.</param> public UserService( JwtUtil jwtUtil, VaultUtil vaultUtil, HttpClientBuilder client, FileUtil fileUtil ) { settings = vaultUtil.decrypt <Settings>(); this.jwtUtil = jwtUtil; this.client = client; this.fileUtil = fileUtil; }
/// <summary>Initializes a new instance of the <see cref="RestAuthHandler" /> class.</summary> /// <param name="vaultUtil">The vault utility.</param> /// <param name="options">The options.</param> /// <param name="logger">The logger.</param> /// <param name="encoder">The encoder.</param> /// <param name="clock">The clock.</param> /// <param name="service">The service.</param> public RestAuthHandler( VaultUtil vaultUtil, IOptionsMonitor <AuthenticationSchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock, UserService service ) : base(options, logger, encoder, clock) { credentials = vaultUtil.decrypt <Credentials>(); this.service = service; }
/// <summary>Initializes a new instance of the <see cref="HttpClientBuilder" /> class.</summary> /// <param name="vaultUtil">The vault utility.</param> public HttpClientBuilder(VaultUtil vaultUtil) { settings = vaultUtil.decrypt <Settings>(); }