diff --git a/Directory.Build.props b/Directory.Build.props
index e7a8422605..c62dd3ff2e 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -13,6 +13,11 @@
true
+
+ false
+ false
+ false
+
@@ -30,4 +35,4 @@
4.18.1
-
\ No newline at end of file
+
diff --git a/bitwarden_license/src/Scim/Program.cs b/bitwarden_license/src/Scim/Program.cs
index 02f2e00d32..c0c3f23474 100644
--- a/bitwarden_license/src/Scim/Program.cs
+++ b/bitwarden_license/src/Scim/Program.cs
@@ -8,6 +8,7 @@ public class Program
{
Host
.CreateDefaultBuilder(args)
+ .UseBitwardenSdk()
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
diff --git a/bitwarden_license/src/Scim/Scim.csproj b/bitwarden_license/src/Scim/Scim.csproj
index 7d1ea317b2..d3858e1225 100644
--- a/bitwarden_license/src/Scim/Scim.csproj
+++ b/bitwarden_license/src/Scim/Scim.csproj
@@ -1,4 +1,5 @@
+
bitwarden-Scim
diff --git a/bitwarden_license/src/Sso/Program.cs b/bitwarden_license/src/Sso/Program.cs
index bac3bb3d13..d6a46b32d0 100644
--- a/bitwarden_license/src/Sso/Program.cs
+++ b/bitwarden_license/src/Sso/Program.cs
@@ -8,7 +8,7 @@ public class Program
{
Host
.CreateDefaultBuilder(args)
- .ConfigureCustomAppConfiguration(args)
+ .UseBitwardenSdk()
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
diff --git a/bitwarden_license/src/Sso/Sso.csproj b/bitwarden_license/src/Sso/Sso.csproj
index 2a1c14ae5a..709e8c2c4a 100644
--- a/bitwarden_license/src/Sso/Sso.csproj
+++ b/bitwarden_license/src/Sso/Sso.csproj
@@ -1,4 +1,5 @@
+
bitwarden-Sso
diff --git a/dev/docker-compose.yml b/dev/docker-compose.yml
index c82da051b4..c1e147e3c9 100644
--- a/dev/docker-compose.yml
+++ b/dev/docker-compose.yml
@@ -145,6 +145,14 @@ services:
profiles:
- redis
+ aspire-dashboard:
+ image: mcr.microsoft.com/dotnet/aspire-dashboard:latest
+ ports:
+ - "18888:18888"
+ - "4317:18889"
+ profiles:
+ - telemetry
+
volumes:
mssql_dev_data:
postgres_dev_data:
diff --git a/global.json b/global.json
index 4cbe3f083a..10fca24248 100644
--- a/global.json
+++ b/global.json
@@ -6,6 +6,6 @@
"msbuild-sdks": {
"Microsoft.Build.Traversal": "4.1.0",
"Microsoft.Build.Sql": "1.0.0",
- "Bitwarden.Server.Sdk": "1.2.0"
+ "Bitwarden.Server.Sdk": "1.3.0"
}
}
diff --git a/src/Admin/Admin.csproj b/src/Admin/Admin.csproj
index b815ddea82..5733589466 100644
--- a/src/Admin/Admin.csproj
+++ b/src/Admin/Admin.csproj
@@ -1,4 +1,5 @@
+
bitwarden-Admin
diff --git a/src/Admin/Program.cs b/src/Admin/Program.cs
index 006a8223b2..80a1ae058c 100644
--- a/src/Admin/Program.cs
+++ b/src/Admin/Program.cs
@@ -8,7 +8,7 @@ public class Program
{
Host
.CreateDefaultBuilder(args)
- .ConfigureCustomAppConfiguration(args)
+ .UseBitwardenSdk()
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.ConfigureKestrel(o =>
diff --git a/src/Api/Api.csproj b/src/Api/Api.csproj
index d25b989d11..c4a286f33c 100644
--- a/src/Api/Api.csproj
+++ b/src/Api/Api.csproj
@@ -1,4 +1,6 @@
+
+
bitwarden-Api
false
diff --git a/src/Api/Program.cs b/src/Api/Program.cs
index bf924af47f..baeaab9fdb 100644
--- a/src/Api/Program.cs
+++ b/src/Api/Program.cs
@@ -8,7 +8,7 @@ public class Program
{
Host
.CreateDefaultBuilder(args)
- .ConfigureCustomAppConfiguration(args)
+ .UseBitwardenSdk()
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
diff --git a/src/Core/Utilities/HostBuilderExtensions.cs b/src/Core/Utilities/HostBuilderExtensions.cs
deleted file mode 100644
index 4806c4032a..0000000000
--- a/src/Core/Utilities/HostBuilderExtensions.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using System.Reflection;
-using Microsoft.Extensions.Configuration;
-using Microsoft.Extensions.Hosting;
-
-namespace Bit.Core.Utilities;
-
-public static class HostBuilderExtensions
-{
- public static IHostBuilder ConfigureCustomAppConfiguration(this IHostBuilder hostBuilder, string[] args)
- {
- // Reload app configuration with SelfHosted overrides.
- return hostBuilder.ConfigureAppConfiguration((hostingContext, config) =>
- {
- if (Environment.GetEnvironmentVariable("globalSettings__selfHosted")?.ToLower() != "true")
- {
- return;
- }
-
- var env = hostingContext.HostingEnvironment;
-
- config.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
- .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true, reloadOnChange: true)
- .AddJsonFile("appsettings.SelfHosted.json", optional: true, reloadOnChange: true);
-
- if (env.IsDevelopment())
- {
- var appAssembly = Assembly.Load(new AssemblyName(env.ApplicationName));
- if (appAssembly != null)
- {
- config.AddUserSecrets(appAssembly, optional: true);
- }
- }
-
- config.AddEnvironmentVariables();
-
- if (args != null)
- {
- config.AddCommandLine(args);
- }
- });
- }
-}
diff --git a/src/Events/Events.csproj b/src/Events/Events.csproj
index dcd66892ed..dc1df1d587 100644
--- a/src/Events/Events.csproj
+++ b/src/Events/Events.csproj
@@ -1,4 +1,5 @@
+
bitwarden-Events
diff --git a/src/Events/Program.cs b/src/Events/Program.cs
index 1a00549005..78a3cfcdc0 100644
--- a/src/Events/Program.cs
+++ b/src/Events/Program.cs
@@ -8,7 +8,7 @@ public class Program
{
Host
.CreateDefaultBuilder(args)
- .ConfigureCustomAppConfiguration(args)
+ .UseBitwardenSdk()
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
diff --git a/src/EventsProcessor/EventsProcessor.csproj b/src/EventsProcessor/EventsProcessor.csproj
index 2f1aeaef54..9c128aa606 100644
--- a/src/EventsProcessor/EventsProcessor.csproj
+++ b/src/EventsProcessor/EventsProcessor.csproj
@@ -1,4 +1,5 @@
+
bitwarden-EventsProcessor
diff --git a/src/EventsProcessor/Program.cs b/src/EventsProcessor/Program.cs
index e4f4ac90d1..45f8b620b1 100644
--- a/src/EventsProcessor/Program.cs
+++ b/src/EventsProcessor/Program.cs
@@ -8,6 +8,7 @@ public class Program
{
Host
.CreateDefaultBuilder(args)
+ .UseBitwardenSdk()
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
diff --git a/src/Icons/Icons.csproj b/src/Icons/Icons.csproj
index 97e9562183..d7dbeb9626 100644
--- a/src/Icons/Icons.csproj
+++ b/src/Icons/Icons.csproj
@@ -1,4 +1,5 @@
+
bitwarden-Icons
diff --git a/src/Icons/Program.cs b/src/Icons/Program.cs
index 80c1b5728e..5ca5723a52 100644
--- a/src/Icons/Program.cs
+++ b/src/Icons/Program.cs
@@ -8,6 +8,7 @@ public class Program
{
Host
.CreateDefaultBuilder(args)
+ .UseBitwardenSdk()
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
diff --git a/src/Identity/Identity.csproj b/src/Identity/Identity.csproj
index db49f8c856..f31d8c005e 100644
--- a/src/Identity/Identity.csproj
+++ b/src/Identity/Identity.csproj
@@ -1,4 +1,5 @@
+
bitwarden-Identity
diff --git a/src/Identity/Program.cs b/src/Identity/Program.cs
index 238ad8ce3a..ae284c86f2 100644
--- a/src/Identity/Program.cs
+++ b/src/Identity/Program.cs
@@ -15,7 +15,7 @@ public class Program
{
return Host
.CreateDefaultBuilder(args)
- .ConfigureCustomAppConfiguration(args)
+ .UseBitwardenSdk()
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
diff --git a/src/Notifications/Notifications.csproj b/src/Notifications/Notifications.csproj
index 4d19f7faf9..76278fdea8 100644
--- a/src/Notifications/Notifications.csproj
+++ b/src/Notifications/Notifications.csproj
@@ -1,4 +1,5 @@
+
bitwarden-Notifications
diff --git a/src/Notifications/Program.cs b/src/Notifications/Program.cs
index 2792391729..ec7ea67fda 100644
--- a/src/Notifications/Program.cs
+++ b/src/Notifications/Program.cs
@@ -8,7 +8,7 @@ public class Program
{
Host
.CreateDefaultBuilder(args)
- .ConfigureCustomAppConfiguration(args)
+ .UseBitwardenSdk()
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
diff --git a/test/Infrastructure.IntegrationTest/Infrastructure.IntegrationTest.csproj b/test/Infrastructure.IntegrationTest/Infrastructure.IntegrationTest.csproj
index 4822df4c77..262a0fe856 100644
--- a/test/Infrastructure.IntegrationTest/Infrastructure.IntegrationTest.csproj
+++ b/test/Infrastructure.IntegrationTest/Infrastructure.IntegrationTest.csproj
@@ -9,9 +9,7 @@
-
-
-
+
diff --git a/test/IntegrationTestCommon/IntegrationTestCommon.csproj b/test/IntegrationTestCommon/IntegrationTestCommon.csproj
index 6fd6369f49..9a2e159b22 100644
--- a/test/IntegrationTestCommon/IntegrationTestCommon.csproj
+++ b/test/IntegrationTestCommon/IntegrationTestCommon.csproj
@@ -8,7 +8,6 @@
-
diff --git a/util/SeederApi/Program.cs b/util/SeederApi/Program.cs
index 2067df307a..42c5997004 100644
--- a/util/SeederApi/Program.cs
+++ b/util/SeederApi/Program.cs
@@ -8,7 +8,7 @@ public class Program
{
Host
.CreateDefaultBuilder(args)
- .ConfigureCustomAppConfiguration(args)
+ .UseBitwardenSdk()
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
diff --git a/util/SeederApi/SeederApi.csproj b/util/SeederApi/SeederApi.csproj
index 53e9941c1c..bd947ca7c5 100644
--- a/util/SeederApi/SeederApi.csproj
+++ b/util/SeederApi/SeederApi.csproj
@@ -1,4 +1,5 @@
+
bitwarden-seeder-api