summaryrefslogtreecommitdiffstats
path: root/server/src/Utilities/BasicAuthenticationHandler.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-06-05 00:19:10 +0200
committerivarlovlie <git@ivarlovlie.no>2022-06-05 00:19:10 +0200
commit1bd30ee34323f150c63fc537e0d131dca29dc4ef (patch)
tree12f8315916537bd4c9692a2d220a819e78a892fb /server/src/Utilities/BasicAuthenticationHandler.cs
parentd46743d565461144e1aabfb4b6a297d8387c4075 (diff)
downloadgreatoffice-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.cs4
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>();
}