feat: add support for REST server

This commit is contained in:
Nicolas Meienberger
2025-11-16 18:24:09 +01:00
parent df6b70c96f
commit 4d48d7be58
5 changed files with 98 additions and 2 deletions

View File

@@ -33,6 +33,14 @@ const encryptConfig = async (config: RepositoryConfig): Promise<RepositoryConfig
case "azure":
encryptedConfig.accountKey = await cryptoUtils.encrypt(config.accountKey);
break;
case "rest":
if (config.username) {
encryptedConfig.username = await cryptoUtils.encrypt(config.username);
}
if (config.password) {
encryptedConfig.password = await cryptoUtils.encrypt(config.password);
}
break;
}
return encryptedConfig as RepositoryConfig;