diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-06-05 00:19:10 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-06-05 00:19:10 +0200 |
| commit | 1bd30ee34323f150c63fc537e0d131dca29dc4ef (patch) | |
| tree | 12f8315916537bd4c9692a2d220a819e78a892fb /server/src/Utilities/BasicAuthenticationHandler.cs | |
| parent | d46743d565461144e1aabfb4b6a297d8387c4075 (diff) | |
| download | greatoffice-1bd30ee34323f150c63fc537e0d131dca29dc4ef.tar.xz greatoffice-1bd30ee34323f150c63fc537e0d131dca29dc4ef.zip | |
refactor: Implement caching in VaultService and use VaultService instead of IOptions
Diffstat (limited to 'server/src/Utilities/BasicAuthenticationHandler.cs')
| -rw-r--r-- | server/src/Utilities/BasicAuthenticationHandler.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/Utilities/BasicAuthenticationHandler.cs b/server/src/Utilities/BasicAuthenticationHandler.cs index 1793c95..6138193 100644 --- a/server/src/Utilities/BasicAuthenticationHandler.cs +++ b/server/src/Utilities/BasicAuthenticationHandler.cs @@ -17,11 +17,11 @@ public class BasicAuthenticationHandler : AuthenticationHandler<AuthenticationSc UrlEncoder encoder, ISystemClock clock, AppDbContext context, - IOptions<AppConfiguration> configuration + VaultService vaultService ) : base(options, logger, encoder, clock) { _context = context; - _configuration = configuration.Value; + _configuration = vaultService.GetCurrentAppConfiguration(); _logger = logger.CreateLogger<BasicAuthenticationHandler>(); } |
