azure - 我正在将 AddMicrosoftIdentityWebApi .net core

我正在使用 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/

相关文章:

python - 最大方程长度

google-cloud-platform - 为什么 Airflow PubSubPullOper

javascript - React.useEffect 在依赖项发生变化时不会触发

rust - 为什么 cargo build 在 git 更改锁时忽略锁文件?

visual-studio - 如何一次查找和替换多个不同的键值对?

amazon-web-services - 如何找出弹性 beantalk 部署失败的原因?

mysql - 运行 mysql_secure_installation 时出现错误

angular - 如何重置表单中的特定字段?

laravel - 对 Laravel Controller 策略中的 $this->authori

aws-lambda - 让 Alexa 通过自定义技能通过从后端调用任何 API 而不说 'Ale