How use AddMicrosoftIdentityWebApiAuthentication without appsettings section?
I am implementing an Azure Active Directory in a .NET 5 API. I currently have this API perfectly running on .NET Core 2.2. This is the old working code: services.AddAuthentication(AzureADDefaults.BearerAuthenticationScheme) .AddAzureADBearer(options => { options.Instance = "https://login.microsoftonline.com/"; options.Domain = backOfficeADDomain; options.