Share via


DownstreamWebApiExtensions.AddDownstreamWebApi Method

Definition

Overloads

AddDownstreamWebApi(MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, String, IConfiguration)
Obsolete.

Adds a named downstream web API service related to a specific configuration section.

AddDownstreamWebApi(MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, String, Action<DownstreamWebApiOptions>)
Obsolete.

Adds a named downstream web API service initialized with delegates.

AddDownstreamWebApi(MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, String, IConfiguration)

Caution

Use AddDownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.

Adds a named downstream web API service related to a specific configuration section.

[System.Obsolete("Use AddDownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.", false)]
public static Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder AddDownstreamWebApi (this Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder builder, string serviceName, Microsoft.Extensions.Configuration.IConfiguration configuration);
[<System.Obsolete("Use AddDownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.", false)>]
static member AddDownstreamWebApi : Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder * string * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder
<Extension()>
Public Function AddDownstreamWebApi (builder As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, serviceName As String, configuration As IConfiguration) As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder

Parameters

serviceName
String

Name of the configuration for the service. This is the name used when calling the service from controller/pages.

configuration
IConfiguration

Configuration.

Returns

The builder for chaining.

Attributes

Applies to

AddDownstreamWebApi(MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, String, Action<DownstreamWebApiOptions>)

Caution

Use AddDownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.

Adds a named downstream web API service initialized with delegates.

[System.Obsolete("Use AddDownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.", false)]
public static Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder AddDownstreamWebApi (this Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder builder, string serviceName, Action<Microsoft.Identity.Web.DownstreamWebApiOptions> configureOptions);
[<System.Obsolete("Use AddDownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.", false)>]
static member AddDownstreamWebApi : Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder * string * Action<Microsoft.Identity.Web.DownstreamWebApiOptions> -> Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder
<Extension()>
Public Function AddDownstreamWebApi (builder As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder, serviceName As String, configureOptions As Action(Of DownstreamWebApiOptions)) As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder

Parameters

serviceName
String

Name of the configuration for the service. This is the name which will be used when calling the service from controller/pages.

configureOptions
Action<DownstreamWebApiOptions>

Action to configure the options.

Returns

The builder for chaining.

Attributes

Applies to