Example #1
0
 private static MicrosoftIdentityWebAppAuthenticationBuilder AddMicrosoftWebAppCallsWebApi(
     this MicrosoftIdentityWebAppAuthenticationBuilder builder,
     IConfiguration configuration,
     string configSectionName   = Constants.AzureAd,
     string openIdConnectScheme = OpenIdConnectDefaults.AuthenticationScheme)
 {
     return(builder.AddMicrosoftWebAppCallsWebApi(
                null,
                options => configuration.Bind(configSectionName, options),
                options => configuration.Bind(configSectionName, options),
                openIdConnectScheme));
 }
Example #2
0
 public static MicrosoftIdentityWebAppAuthenticationBuilder AddMicrosoftWebAppCallsWebApi(
     this MicrosoftIdentityWebAppAuthenticationBuilder builder,
     IConfiguration configuration,
     IEnumerable <string> initialScopes,
     string configSectionName   = Constants.AzureAd,
     string openIdConnectScheme = OpenIdConnectDefaults.AuthenticationScheme)
 {
     return(builder.AddMicrosoftWebAppCallsWebApi(
                initialScopes,
                options => configuration.Bind(configSectionName, options),
                options => configuration.Bind(configSectionName, options),
                openIdConnectScheme));
 }