//验证传入的令牌以确保它来自受信任的颁发者 //验证令牌是否可以与此 api 一起使用(又名受众) //将身份验证服务添加到 DI(依赖注入)并将身份验证中间件添加到管道 builder.Services.AddAuthentication("Bearer") .AddJwtBearer("Bearer", options => { options.Authority = "https://localhost:5001"; options.TokenValidationParameters = new TokenValidationParameters { ValidateAudience = false }; });
当options.Authority ="http://localhost:5001" 报以上错误
标签:5001,http,身份验证,Authority,options,localhost From: https://www.cnblogs.com/friend/p/16727525.html