Language

IDownstreamWebApi Interface

Definition

Caution

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

Interface used to call a downstream web API, for instance from controllers.

[System.Obsolete("Use IDownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.", false)]
public interface IDownstreamWebApi
[]
type IDownstreamWebApi = interface
Public Interface IDownstreamWebApi
Derived
Attributes

Methods

Name Description
CallWebApiForAppAsync(String, Action, StringContent)

Calls the downstream web API for the app, with the required scopes.

CallWebApiForAppAsync(String, String, Action, StringContent)

Calls the downstream web API for the app, with the required scopes.

CallWebApiForUserAsync(String, Action, ClaimsPrincipal, StringContent)

Calls the downstream web API for the user, based on a description of the downstream web API in the configuration.

CallWebApiForUserAsync(String, String, Action, ClaimsPrincipal, StringContent)

Calls the downstream web API for the user, based on a description of the downstream web API in the configuration.

CallWebApiForUserAsync(String, TInput, Action, ClaimsPrincipal)

Calls a downstream web API consuming JSON with some data and returns data.

CallWebApiForUserAsync(String, TInput, String, Action, ClaimsPrincipal)

Calls a downstream web API consuming JSON with some data and returns data.

Extension Methods

Name Description
CallWebApiForUserAsync(IDownstreamWebApi, String, Action, ClaimsPrincipal, String)
Obsolete.

Call a web API endpoint with an HttpGet, and return strongly typed data.

GetForUserAsync(IDownstreamWebApi, String, TInput, Action, ClaimsPrincipal, String)
Obsolete.

Call a web API with a strongly typed input, with an HttpGet.

GetForUserAsync(IDownstreamWebApi, String, String, Action, ClaimsPrincipal, String)
Obsolete.

Get a strongly typed response from the web API.

PostForUserAsync(IDownstreamWebApi, String, String, TInput, Action, ClaimsPrincipal, String)
Obsolete.

Calls the web API with an HttpPost, providing strongly typed input and getting strongly typed output.

PutForUserAsync(IDownstreamWebApi, String, String, TInput, Action, ClaimsPrincipal, String)
Obsolete.

Calls the web API endpoint with an HttpPut, providing strongly typed input data.

PutForUserAsync(IDownstreamWebApi, String, String, TInput, Action, ClaimsPrincipal, String)
Obsolete.

Calls the web API endpoint with an HttpPut, provinding strongly typed input data and getting back strongly typed data.

Applies to