PartnerCredentials.GenerateByApplicationCredentialsAsync 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
GenerateByApplicationCredentialsAsync(String, String, String, IRequestContext) |
Asynchronously generates partner credentials using azure active directory application credentials. |
GenerateByApplicationCredentialsAsync(String, String, String, String, String, IRequestContext) |
Asynchronously generates partner credentials using azure active directory application credentials with the provided AAD overrides. |
GenerateByApplicationCredentialsAsync(String, String, String, IRequestContext)
Asynchronously generates partner credentials using azure active directory application credentials.
public System.Threading.Tasks.Task<Microsoft.Store.PartnerCenter.IPartnerCredentials> GenerateByApplicationCredentialsAsync (string clientId, string applicationSecret, string aadApplicationDomain, Microsoft.Store.PartnerCenter.RequestContext.IRequestContext requestContext = default);
member this.GenerateByApplicationCredentialsAsync : string * string * string * Microsoft.Store.PartnerCenter.RequestContext.IRequestContext -> System.Threading.Tasks.Task<Microsoft.Store.PartnerCenter.IPartnerCredentials>
Public Function GenerateByApplicationCredentialsAsync (clientId As String, applicationSecret As String, aadApplicationDomain As String, Optional requestContext As IRequestContext = Nothing) As Task(Of IPartnerCredentials)
Parameters
- clientId
- String
The client id of the application in azure active directory. This application should be an Azure web application.
- applicationSecret
- String
The application secret with azure active directory.
- aadApplicationDomain
- String
The application domain in Azure Active Directory.
- requestContext
- IRequestContext
An optional request context.
Returns
The partner service credentials.
Applies to
GenerateByApplicationCredentialsAsync(String, String, String, String, String, IRequestContext)
Asynchronously generates partner credentials using azure active directory application credentials with the provided AAD overrides.
public System.Threading.Tasks.Task<Microsoft.Store.PartnerCenter.IPartnerCredentials> GenerateByApplicationCredentialsAsync (string clientId, string applicationSecret, string aadApplicationDomain, string aadAuthorityEndpoint, string graphEndpoint, Microsoft.Store.PartnerCenter.RequestContext.IRequestContext requestContext = default);
member this.GenerateByApplicationCredentialsAsync : string * string * string * string * string * Microsoft.Store.PartnerCenter.RequestContext.IRequestContext -> System.Threading.Tasks.Task<Microsoft.Store.PartnerCenter.IPartnerCredentials>
Public Function GenerateByApplicationCredentialsAsync (clientId As String, applicationSecret As String, aadApplicationDomain As String, aadAuthorityEndpoint As String, graphEndpoint As String, Optional requestContext As IRequestContext = Nothing) As Task(Of IPartnerCredentials)
Parameters
- clientId
- String
The client id of the application in azure active directory. This application should be an Azure web application.
- applicationSecret
- String
The application secret with azure active directory.
- aadApplicationDomain
- String
The application domain in Azure Active Directory.
- aadAuthorityEndpoint
- String
The active directory authority endpoint.
- graphEndpoint
- String
The AAD graph API endpoint.
- requestContext
- IRequestContext
An optional request context.
Returns
The partner service credentials.