From 302ab5521a82258b2df3b463ddf175412efd7137 Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Fri, 22 Mar 2024 11:16:13 -0400 Subject: [PATCH] Update error message for longer key requirement --- Backend/Startup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Backend/Startup.cs b/Backend/Startup.cs index aa4657437a..3c9e932c30 100644 --- a/Backend/Startup.cs +++ b/Backend/Startup.cs @@ -105,8 +105,8 @@ public void ConfigureServices(IServiceCollection services) const string secretKeyEnvName = "COMBINE_JWT_SECRET_KEY"; var secretKey = Environment.GetEnvironmentVariable(secretKeyEnvName); - // The JWT key size must be at least 128 bits long. - const int minKeyLength = 128 / 8; + // The JWT key size must be at least 256 bits long. + const int minKeyLength = 256 / 8; if (secretKey is null || secretKey.Length < minKeyLength) { _logger.LogError("Must set {EnvName} environment variable to string of length {MinLength} or longer.",