Skip to content

Commit

Permalink
Not sure if this is because of older .net/libs, but the direct bindin…
Browse files Browse the repository at this point in the history
…g doesn't work for string collections
  • Loading branch information
p-kaczynski committed Sep 6, 2024
1 parent 5397f96 commit a2fb543
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/protagonist/API/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ public void ConfigureServices(IServiceCollection services)

services
.Configure<NamedQueryTemplateSettings>(configuration)
.Configure<DlcsSettings>(configuration.GetSection("DLCS"))
.Configure<DlcsSettings>(settings =>
{
configuration.GetSection("DLCS").Bind(settings);
settings.JwtValidIssuers =
configuration.GetSection("DLCS").GetSection("JwtValidIssuers").Get<string[]>();
})
.Configure<CacheSettings>(cachingSection);

var apiSettings = configuration.Get<ApiSettings>();
Expand Down

0 comments on commit a2fb543

Please sign in to comment.