set the audience bearer option

This commit is contained in:
Paul Schneider 2026-02-18 00:34:22 +00:00
commit 04009f99e3

View file

@ -128,8 +128,12 @@ public static class HostingExtensions
{
options.IncludeErrorDetails = true;
options.Authority = builder.Configuration.GetSection("Site")["Authority"];
options.Audience = builder.Configuration.GetSection("Site")["Audience"];
options.TokenValidationParameters =
new() { ValidateAudience = false, RoleClaimType = Constants.RoleClaimType };
new() {
ValidateAudience = false,
RoleClaimType = Constants.RoleClaimType
};
options.MapInboundClaims = true;
});