WebApiBuilders.EnableTokenAcquisition Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee kunt u een abstractie van het beveiligingstoken op een hoger niveau (bijvoorbeeld System.IdentityModel.Tokens.Jwt en modernere, Microsoft. IdentityModel.JsonWebTokens) voor gebruik met Microsoft Identity Web.
Ontwikkelaars moeten blijven gebruiken EnableTokenAcquisitionToCallDownstreamApi.
Deze API wordt niet beschouwd als onderdeel van de openbare API en kan worden gewijzigd.
public static Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder EnableTokenAcquisition(Action<Microsoft.Identity.Client.ConfidentialClientApplicationOptions> configureConfidentialClientApplicationOptions, string authenticationScheme, Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection? configuration);
static member EnableTokenAcquisition : Action<Microsoft.Identity.Client.ConfidentialClientApplicationOptions> * string * Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfigurationSection -> Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder
Public Shared Function EnableTokenAcquisition (configureConfidentialClientApplicationOptions As Action(Of ConfidentialClientApplicationOptions), authenticationScheme As String, services As IServiceCollection, configuration As IConfigurationSection) As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder
Parameters
- configureConfidentialClientApplicationOptions
- Action<ConfidentialClientApplicationOptions>
De actie die moet worden geconfigureerd ConfidentialClientApplicationOptions.
- authenticationScheme
- String
Verificatieschema.
- services
- IServiceCollection
De services die worden geconfigureerd.
- configuration
- IConfigurationSection
IConfigurationSection.
Retouren
De opbouwfunctie voor verificatie die moet worden gekoppeld.