IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應