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:
parent
d245236a14
commit
8b37e4c94c
28 changed files with 347 additions and 335 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue