public static MicrosoftIdentityAppCallsWebApiAuthenticationBuilder AddMicrosoftWebAppCallsWebApi(
            MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration builder,
            IConfiguration configuration,
            string configSectionName   = Constants.AzureAd,
            string openIdConnectScheme = OpenIdConnectDefaults.AuthenticationScheme)
        {
            if (builder is null)
            {
                throw new ArgumentNullException(nameof(builder));
            }

            return(builder.EnableTokenAcquisitionToCallDownstreamApi());
        }
        public static MicrosoftIdentityAppCallsWebApiAuthenticationBuilder AddMicrosoftWebAppCallsWebApi(
            this MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration builder,
            IEnumerable <string>?initialScopes,
            Action <MicrosoftIdentityOptions> configureMicrosoftIdentityOptions,
            Action <ConfidentialClientApplicationOptions> configureConfidentialClientApplicationOptions,
            string openIdConnectScheme = OpenIdConnectDefaults.AuthenticationScheme)
        {
            if (builder is null)
            {
                throw new ArgumentNullException(nameof(builder));
            }

            return(builder.EnableTokenAcquisitionToCallDownstreamApi(
                       configureConfidentialClientApplicationOptions,
                       initialScopes));
        }