Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update client name and lint fixes (#541)

Leendert de Borstc2d035510a07
diff --git a/browser-extensions/chrome/src/shared/AppInfo.ts b/browser-extensions/chrome/src/shared/AppInfo.ts
index 0ab11728f..8818f87be 100644
--- a/browser-extensions/chrome/src/shared/AppInfo.ts
+++ b/browser-extensions/chrome/src/shared/AppInfo.ts
@@ -8,8 +8,10 @@ export class AppInfo {
// Minimum supported AliasVault client vault version.
public static readonly MIN_VAULT_VERSION = '1.4.1';
- // The client name to use in the X-AliasVault-Client header.
- // TODO: make this configurable when adding other browser support (e.g. Firefox).
+ /*
+ * The client name to use in the X-AliasVault-Client header.
+ * TODO: make this configurable when adding other browser support (e.g. Firefox).
+ */
public static readonly CLIENT_NAME = 'chrome';
/**
diff --git a/src/AliasVault.Client/Program.cs b/src/AliasVault.Client/Program.cs
index 9caa41ac9..149a6dcea 100644
--- a/src/AliasVault.Client/Program.cs
+++ b/src/AliasVault.Client/Program.cs
@@ -59,7 +59,7 @@ builder.Services.AddScoped(sp =>
httpClient.BaseAddress = new Uri(baseUrl);
// Add client header.
- httpClient.DefaultRequestHeaders.Add("X-AliasVault-Client", "client-" + AppInfo.GetFullVersion());
+ httpClient.DefaultRequestHeaders.Add("X-AliasVault-Client", "web-" + AppInfo.GetFullVersion());
return httpClient;
});
diff --git a/src/Tests/AliasVault.E2ETests/Tests/Client/Shard4/AuthTests.cs b/src/Tests/AliasVault.E2ETests/Tests/Client/Shard4/AuthTests.cs
index cb8d37edb..3c670fbee 100644
--- a/src/Tests/AliasVault.E2ETests/Tests/Client/Shard4/AuthTests.cs
+++ b/src/Tests/AliasVault.E2ETests/Tests/Client/Shard4/AuthTests.cs
@@ -236,7 +236,7 @@ public class AuthTests : ClientPlaywrightTest
Assert.Multiple(() =>
{
Assert.That(authLogEntry.Client, Is.Not.Null, "Auth log client header is null.");
- Assert.That(authLogEntry.Client, Does.Contain("client-" + currentVersion), "Auth log client header does not contain expected value.");
+ Assert.That(authLogEntry.Client, Does.Contain("web-" + currentVersion), "Auth log client header does not contain expected value.");
});
}
}