set the audience bearer option
This commit is contained in:
parent
181a44e396
commit
04009f99e3
1 changed files with 5 additions and 1 deletions
|
|
@ -128,8 +128,12 @@ public static class HostingExtensions
|
||||||
{
|
{
|
||||||
options.IncludeErrorDetails = true;
|
options.IncludeErrorDetails = true;
|
||||||
options.Authority = builder.Configuration.GetSection("Site")["Authority"];
|
options.Authority = builder.Configuration.GetSection("Site")["Authority"];
|
||||||
|
options.Audience = builder.Configuration.GetSection("Site")["Audience"];
|
||||||
options.TokenValidationParameters =
|
options.TokenValidationParameters =
|
||||||
new() { ValidateAudience = false, RoleClaimType = Constants.RoleClaimType };
|
new() {
|
||||||
|
ValidateAudience = false,
|
||||||
|
RoleClaimType = Constants.RoleClaimType
|
||||||
|
};
|
||||||
options.MapInboundClaims = true;
|
options.MapInboundClaims = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue