Freigeben über


IConfidentialClientApplication.AcquireTokenOnBehalfOfAsync Method

Definition

Overloads

AcquireTokenOnBehalfOfAsync(IEnumerable<String>, UserAssertion)
Obsolete.

[V3 API] Acquires token using On-Behalf-Of flow. (See https://aka.ms/msal-net-on-behalf-of)

AcquireTokenOnBehalfOfAsync(IEnumerable<String>, UserAssertion, String)
Obsolete.

[V3 API] Acquires token using On-Behalf-Of flow. (See https://aka.ms/msal-net-on-behalf-of)

AcquireTokenOnBehalfOfAsync(IEnumerable<String>, UserAssertion)

Caution

Use AcquireTokenOnBehalfOf instead. See https://aka.ms/msal-net-3-breaking-changes.

[V3 API] Acquires token using On-Behalf-Of flow. (See https://aka.ms/msal-net-on-behalf-of)

[System.Obsolete("Use AcquireTokenOnBehalfOf instead. See https://aka.ms/msal-net-3-breaking-changes. ", true)]
public System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> AcquireTokenOnBehalfOfAsync (System.Collections.Generic.IEnumerable<string> scopes, Microsoft.Identity.Client.UserAssertion userAssertion);
[<System.Obsolete("Use AcquireTokenOnBehalfOf instead. See https://aka.ms/msal-net-3-breaking-changes. ", true)>]
abstract member AcquireTokenOnBehalfOfAsync : seq<string> * Microsoft.Identity.Client.UserAssertion -> System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult>
Public Function AcquireTokenOnBehalfOfAsync (scopes As IEnumerable(Of String), userAssertion As UserAssertion) As Task(Of AuthenticationResult)

Parameters

scopes
IEnumerable<String>

Array of scopes requested for resource

userAssertion
UserAssertion

Instance of UserAssertion containing user's token.

Returns

Authentication result containing token of the user for the requested scopes

Attributes

Applies to

AcquireTokenOnBehalfOfAsync(IEnumerable<String>, UserAssertion, String)

Caution

Use AcquireTokenOnBehalfOf instead. See https://aka.ms/msal-net-3-breaking-changes.

[V3 API] Acquires token using On-Behalf-Of flow. (See https://aka.ms/msal-net-on-behalf-of)

[System.Obsolete("Use AcquireTokenOnBehalfOf instead. See https://aka.ms/msal-net-3-breaking-changes. ", true)]
public System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> AcquireTokenOnBehalfOfAsync (System.Collections.Generic.IEnumerable<string> scopes, Microsoft.Identity.Client.UserAssertion userAssertion, string authority);
[<System.Obsolete("Use AcquireTokenOnBehalfOf instead. See https://aka.ms/msal-net-3-breaking-changes. ", true)>]
abstract member AcquireTokenOnBehalfOfAsync : seq<string> * Microsoft.Identity.Client.UserAssertion * string -> System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult>
Public Function AcquireTokenOnBehalfOfAsync (scopes As IEnumerable(Of String), userAssertion As UserAssertion, authority As String) As Task(Of AuthenticationResult)

Parameters

scopes
IEnumerable<String>

Array of scopes requested for resource

userAssertion
UserAssertion

Instance of UserAssertion containing user's token.

authority
String

Specific authority for which the token is requested. Passing a different value than configured does not change the configured value

Returns

Authentication result containing token of the user for the requested scopes

Attributes

Applies to