log.debug("findAdminSettingsByKey is returning InvalidDataAccessResourceUsageException. This is an installation case when the database is not initialized yet");
returnnull;
}
}
/*
@ -101,15 +108,13 @@ public class JwtSettingsService {
}
publicvoidvalidateJwtTokenSigningKey(){
if(!isJwtAdminSettingsExists()){
if(hasDefaultTokenSigningKey()){
if(isAllowedDefaultJwtSigningKey()){
log.warn("Default JWT signing key is allowed. This is a security issue. Please, consider to set a strong key in admin settings");
}else{
Stringmessage="Please, set a unique signing key with env variable JWT_TOKEN_SIGNING_KEY. Key is a Base64 encoded phrase. This will require to generate new tokens for all users and API that uses JWT tokens. To allow insecure JWS use TB_ALLOW_DEFAULT_JWT_SIGNING_KEY=true";
log.warn("Default JWT signing key is allowed. This is a security issue. Please, consider to set a strong key in admin settings");
}else{
Stringmessage="Please, set a unique signing key with env variable JWT_TOKEN_SIGNING_KEY. Key is a Base64 encoded phrase. This will require to generate new tokens for all users and API that uses JWT tokens. To allow insecure JWS use TB_ALLOW_DEFAULT_JWT_SIGNING_KEY=true";