diff --git a/backend/LocalWebApp/LocalAppKernel.cs b/backend/LocalWebApp/LocalAppKernel.cs index aa8090f9e..03e744710 100644 --- a/backend/LocalWebApp/LocalAppKernel.cs +++ b/backend/LocalWebApp/LocalAppKernel.cs @@ -49,7 +49,7 @@ private static void AddAuthHelpers(this IServiceCollection services, IHostEnviro services.AddTransient(sp => sp.GetRequiredService().GetCurrentHelper()); services.AddSingleton(); services.AddSingleton(sp => sp.GetRequiredService()); - services.AddOptionsWithValidateOnStart().ValidateDataAnnotations(); + services.AddOptionsWithValidateOnStart().BindConfiguration("Auth").ValidateDataAnnotations(); services.AddSingleton(); var httpClientBuilder = services.AddHttpClient(AuthHelpers.AuthHttpClientName); if (environment.IsDevelopment()) diff --git a/backend/LocalWebApp/Program.cs b/backend/LocalWebApp/Program.cs index 961c6e80d..cf6c481b5 100644 --- a/backend/LocalWebApp/Program.cs +++ b/backend/LocalWebApp/Program.cs @@ -9,7 +9,7 @@ var builder = WebApplication.CreateBuilder(args); if (!builder.Environment.IsDevelopment()) builder.WebHost.UseUrls("http://127.0.0.1:0"); -builder.ConfigureDev(config => config.DefaultAuthority = new("https://localhost:3000")); +builder.ConfigureDev(config => config.DefaultAuthority = new("https://lexbox.dev.languagetechnology.org")); builder.ConfigureProd(config => config.DefaultAuthority = new("https://lexbox.org")); builder.Services.Configure(c => c.ClientId = "becf2856-0690-434b-b192-a4032b72067f"); diff --git a/backend/Taskfile.yml b/backend/Taskfile.yml index 1a4cf9fa5..21ac8a733 100644 --- a/backend/Taskfile.yml +++ b/backend/Taskfile.yml @@ -95,6 +95,12 @@ tasks: label: dotnet dir: ./LocalWebApp cmd: dotnet watch --no-hot-reload + local-web-app-with-local-lexbox: + label: Run LocalWebApp with Local LexBox + env: + Auth__DefaultAuthority: "https://localhost:3000" + dir: ./LocalWebApp + cmd: dotnet watch --no-hot-reload publish-local-all: cmds: