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
[<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)>]
type DownstreamWebApi = class
interface IDownstreamWebApi
Public Class DownstreamWebApi
Implements IDownstreamWebApi
- Inheritance
-
DownstreamWebApi
- Attributes
- Implements
Constructors
DownstreamWebApi(ITokenAcquisition, IOptionsMonitor<DownstreamWebApiOptions>, HttpClient, IOptionsMonitor<MicrosoftIdentityOptions>) |
Constructor. |
Methods
CallWebApiForAppAsync(String, String, Action<DownstreamWebApiOptions>, StringContent) |
Calls the downstream web API for the app, with the required scopes. |
CallWebApiForUserAsync(String, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal, StringContent) |
Calls the downstream web API for the user, based on a description of the downstream web API in the configuration. |
CallWebApiForUserAsync<TInput,TOutput>(String, TInput, String, Action<DownstreamWebApiOptions>, ClaimsPrincipal) |
Calls a downstream web API consuming JSON with some data and returns data. |
Extension Methods
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈