Update package references and assembly information

- Updated Microsoft.AspNetCore.Authentication.JwtBearer from version 7.0.3 to 7.0.20.
- Added Microsoft.IdentityModel.JsonWebTokens, Microsoft.IdentityModel.Protocols, Microsoft.IdentityModel.Protocols.OpenIdConnect, and Microsoft.IdentityModel.Tokens with version 7.1.2.
- Updated System.IdentityModel.Tokens.Jwt from version 7.0.3 to 7.1.2.
- Updated AssemblyInformationalVersion in AssemblyInfo.cs.
- Updated project.assets.json and project.nuget.cache to reflect new package versions.
- Removed deprecated cache entries and warnings related to previous package vulnerabilities.
This commit is contained in:
Suphonchai Phoonsawat 2026-03-24 13:42:59 +07:00
parent d245236a14
commit 8b37e4c94c
28 changed files with 347 additions and 335 deletions

View file

@ -50,6 +50,10 @@ builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddJw
{
opt.RequireHttpsMetadata = false; //false for dev
opt.Authority = issuer;
opt.BackchannelHttpHandler = new HttpClientHandler
{
ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator
};
opt.TokenValidationParameters = new()
{
ValidateIssuer = true,