我过去使用过IConfigureOptions,现在有一个使用OAuth自省的新项目。我尝试使用一个类来设置选项模式: public class .AddOAuth2Introspection(); 我添加到DI绑定中: services.AddSingleton<IConfigureOptionsAddOauth2Introspectio
我最近问了一个类似的问题,但它是与AAD B2C有关的。现在我想知道如何在我的应用程序中正确地将策略添加到Azure Active Directory身份验证。目前,我的Startup类如下所示:{ {
public Startup(IHostingEnvironment(对于Azure Graph),但现在应用程序使用某种默认的microsoft策略,我被迫使用Microsoft身份验证,同时我还想对本地租户用户进行