gpt4 book ai didi

azure - 我正在将 AddMicrosoftIdentityWebApi .net core 6 与 MSAL 结合使用。我可以创建自定义中间件吗?

转载 作者:行者123 更新时间:2023-12-05 08:03:32 24 4
gpt4 key购买 nike

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

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com