ConfidentialClientApplication.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
IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync(IEnumerable<String>, UserAssertion) |
Obsolete.
[V2 API] Acquires an access token for this application (usually a web API) from the authority configured in the application, in order to access
another downstream protected web API on behalf of a user using the OAuth 2.0 On-Behalf-Of flow. (See https://aka.ms/msal-net-on-behalf-of).
This confidential client application was itself called with a token which will be provided in the
|
IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync(IEnumerable<String>, UserAssertion, String) |
Obsolete.
[V2 API] Acquires an access token for this application (usually a web API) from a specific authority, in order to access
another downstream protected web API on behalf of a user (See https://aka.ms/msal-net-on-behalf-of).
This confidential client application was itself called with a token which will be provided in the
This override sends the certificate, which helps certificate rotation in Azure AD
|
IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync(IEnumerable<String>, UserAssertion)
Caution
Use AcquireTokenOnBehalfOf instead. See https://aka.ms/msal-net-3-breaking-changes.
[V2 API] Acquires an access token for this application (usually a web API) from the authority configured in the application, in order to access
another downstream protected web API on behalf of a user using the OAuth 2.0 On-Behalf-Of flow. (See https://aka.ms/msal-net-on-behalf-of).
This confidential client application was itself called with a token which will be provided in the
userAssertion
parameter.
This override sends the certificate, which helps certificate rotation in Azure AD
[System.Obsolete("Use AcquireTokenOnBehalfOf instead. See https://aka.ms/msal-net-3-breaking-changes. ", true)]
System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync (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 Microsoft.Identity.Client.IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync : seq<string> * Microsoft.Identity.Client.UserAssertion -> System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult>
override this.Microsoft.Identity.Client.IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync : seq<string> * Microsoft.Identity.Client.UserAssertion -> System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult>
Function AcquireTokenOnBehalfOfWithCertificateAsync (scopes As IEnumerable(Of String), userAssertion As UserAssertion) As Task(Of AuthenticationResult) Implements IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync
Parameters
- scopes
- IEnumerable<String>
Scopes requested to access a protected API
- userAssertion
- UserAssertion
Instance of UserAssertion containing credential information about the user on behalf of whom to get a token.
Returns
Authentication result containing a token for the requested scopes and account
Implements
- Attributes
See also
Applies to
IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync(IEnumerable<String>, UserAssertion, String)
Caution
Use AcquireTokenOnBehalfOf instead. See https://aka.ms/msal-net-3-breaking-changes.
[V2 API] Acquires an access token for this application (usually a web API) from a specific authority, in order to access
another downstream protected web API on behalf of a user (See https://aka.ms/msal-net-on-behalf-of).
This confidential client application was itself called with a token which will be provided in the
This override sends the certificate, which helps certificate rotation in Azure AD
userAssertion
parameter.
[System.Obsolete("Use AcquireTokenOnBehalfOf instead. See https://aka.ms/msal-net-3-breaking-changes. ", true)]
System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync (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 Microsoft.Identity.Client.IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync : seq<string> * Microsoft.Identity.Client.UserAssertion * string -> System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult>
override this.Microsoft.Identity.Client.IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync : seq<string> * Microsoft.Identity.Client.UserAssertion * string -> System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult>
Function AcquireTokenOnBehalfOfWithCertificateAsync (scopes As IEnumerable(Of String), userAssertion As UserAssertion, authority As String) As Task(Of AuthenticationResult) Implements IConfidentialClientApplicationWithCertificate.AcquireTokenOnBehalfOfWithCertificateAsync
Parameters
- scopes
- IEnumerable<String>
Scopes requested to access a protected API
- userAssertion
- UserAssertion
Instance of UserAssertion containing credential information about the user on behalf of whom to get a 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 a token for the requested scopes and account
Implements
- Attributes
See also
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기