我正在使用 AddMicrosoftIdentityWebApi .net core 6 。我可以创建自定义中间件吗?
下面是我的代码。
services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddMicrosoftIdentityWebApi(Configuration.GetSection("AzureAd"));
我们可以为 Microsoft 身份添加自定义中间件吗?
最佳答案
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme).AddMicrosoftIdentityWebApi(builder.Configuration.GetSection("AzureAd"));
关于azure - 我正在将 AddMicrosoftIdentityWebApi .net core 6 与 MSAL 结合使用。我可以创建自定义中间件吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72269381/
相关文章:
google-cloud-platform - 为什么 Airflow PubSubPullOper
javascript - React.useEffect 在依赖项发生变化时不会触发
rust - 为什么 cargo build 在 git 更改锁时忽略锁文件?
visual-studio - 如何一次查找和替换多个不同的键值对?
amazon-web-services - 如何找出弹性 beantalk 部署失败的原因?
mysql - 运行 mysql_secure_installation 时出现错误