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