Partager via


MicrosoftIdentityWebAppAuthenticationBuilder.EnableTokenAcquisitionToCallDownstreamApi Method

Definition

Overloads

EnableTokenAcquisitionToCallDownstreamApi(IEnumerable<String>)

The web app calls a web API.

EnableTokenAcquisitionToCallDownstreamApi(Action<ConfidentialClientApplicationOptions>, IEnumerable<String>)

The web app calls a web API. This override enables you to specify the ConfidentialClientApplicationOptions (from MSAL.NET) programmatically.

EnableTokenAcquisitionToCallDownstreamApi(IEnumerable<String>)

The web app calls a web API.

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

Parameters

initialScopes
IEnumerable<String>

Initial scopes.

Returns

The builder itself for chaining.

Applies to

EnableTokenAcquisitionToCallDownstreamApi(Action<ConfidentialClientApplicationOptions>, IEnumerable<String>)

The web app calls a web API. This override enables you to specify the ConfidentialClientApplicationOptions (from MSAL.NET) programmatically.

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

Parameters

configureConfidentialClientApplicationOptions
Action<ConfidentialClientApplicationOptions>

Action to configure the MSAL.NET confidential client application options.

initialScopes
IEnumerable<String>

Initial scopes.

Returns

The builder itself for chaining.

Applies to