feat/app-invite #33

Closed
notazof wants to merge 220 commits from feat/app-invite into feat/postit-acl
Showing only changes of commit 7fa55a68c9 - Show all commits

WIP audiences

Paul Schneider 2026-07-12 01:17:52 +01:00

View file

@ -44,15 +44,22 @@ internal class Program
}
foreach (var audience in builder.Configuration.GetValue<string[]>("Site:Audience"))
{
if (string.IsNullOrEmpty(audience))
{
throw new Exception("Site:Audience is not configured in appsettings.json");
}
// AuthenticationBuilder
services.AddAuthentication("Bearer")
.AddYavscJwtBearer(builder.Configuration,
options =>
{
options.Authority = authority;
options.Audience = builder.Configuration.GetValue<string>
("Site:Audience");
options.Audience = audience;
});
}
// DbContextBuilder
services.AddDbContext<ApplicationDbContext>(options =>