Sdílet prostřednictvím


IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync Method

Definition

Overloads

AcquireTokenOnBehalfOfWithCertificateAsync(IEnumerable<String>, UserAssertion)
Obsolete.

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

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

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

AcquireTokenOnBehalfOfWithCertificateAsync(IEnumerable<String>, UserAssertion)

Caution

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

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

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

AcquireTokenOnBehalfOfWithCertificateAsync(IEnumerable<String>, UserAssertion, String)

Caution

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

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

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