Sprache

MicrosoftIdentityWebAppAuthenticationBuilderWithConfiguration.EnableTokenAcquisitionToCallDownstreamApi Methode

Definition

Fügen Sie Unterstützung für die Web-App hinzu, um Token abzurufen, um eine API aufzurufen.

public Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder EnableTokenAcquisitionToCallDownstreamApi(System.Collections.Generic.IEnumerable<string>? initialScopes = default);
override this.EnableTokenAcquisitionToCallDownstreamApi : seq<string> -> Microsoft.Identity.Web.MicrosoftIdentityAppCallsWebApiAuthenticationBuilder
Public Function EnableTokenAcquisitionToCallDownstreamApi (Optional initialScopes As IEnumerable(Of String) = Nothing) As MicrosoftIdentityAppCallsWebApiAuthenticationBuilder

Parameter

initialScopes
IEnumerable<String>

Optionale anfängliche Bereiche, die angefordert werden sollen.

Gibt zurück

Der Authentifizierungs-Generator zur Verkettung.

Gilt für: