DownstreamWebApi Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use DownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.
Implementation for the downstream web API.
[System.Obsolete("Use DownstreamApi in Microsoft.Identity.Abstractions, implemented in Microsoft.Identity.Web.DownstreamApi.See aka.ms/id-web-downstream-api-v2 for migration details.", false)]
public class DownstreamWebApi : Microsoft.Identity.Web.IDownstreamWebApi
[]
type DownstreamWebApi = class
interface IDownstreamWebApi
Public Class DownstreamWebApi
Implements IDownstreamWebApi
- Inheritance
-
DownstreamWebApi
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
|
DownstreamWebApi(ITokenAcquisition, IOptionsMonitor |
Constructor. |
Methods
| Name | Description |
|---|---|
|
CallWebApiForAppAsync(String, String, Action |
Calls the downstream web API for the app, with the required scopes. |
|
CallWebApiForUserAsync(String, String, Action |
Calls the downstream web API for the user, based on a description of the downstream web API in the configuration. |
|
CallWebApiForUserAsync |
Calls a downstream web API consuming JSON with some data and returns data. |
Extension Methods
| Name | Description |
|---|---|
|
CallWebApiForUserAsync |
Obsolete.
Call a web API endpoint with an HttpGet, and return strongly typed data. |
|
GetForUserAsync |
Obsolete.
Call a web API with a strongly typed input, with an HttpGet. |
|
GetForUserAsync |
Obsolete.
Get a strongly typed response from the web API. |
|
PostForUserAsync |
Obsolete.
Calls the web API with an HttpPost, providing strongly typed input and getting strongly typed output. |
|
PutForUserAsync |
Obsolete.
Calls the web API endpoint with an HttpPut, providing strongly typed input data. |
|
PutForUserAsync |
Obsolete.
Calls the web API endpoint with an HttpPut, provinding strongly typed input data and getting back strongly typed data. |