PartnerCredentials.GenerateByUserCredentialsAsync 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.
Asynchronously generates partner credentials using a user plus application azure active directory token.
public System.Threading.Tasks.Task<Microsoft.Store.PartnerCenter.IPartnerCredentials> GenerateByUserCredentialsAsync (string clientId, Microsoft.Store.PartnerCenter.AuthenticationToken authenticationToken, Microsoft.Store.PartnerCenter.Extensions.TokenRefresher aadTokenRefresher = default, Microsoft.Store.PartnerCenter.RequestContext.IRequestContext requestContext = default);
member this.GenerateByUserCredentialsAsync : string * Microsoft.Store.PartnerCenter.AuthenticationToken * Microsoft.Store.PartnerCenter.Extensions.TokenRefresher * Microsoft.Store.PartnerCenter.RequestContext.IRequestContext -> System.Threading.Tasks.Task<Microsoft.Store.PartnerCenter.IPartnerCredentials>
Public Function GenerateByUserCredentialsAsync (clientId As String, authenticationToken As AuthenticationToken, Optional aadTokenRefresher As TokenRefresher = Nothing, 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 native application.
- authenticationToken
- AuthenticationToken
The azure active directory token.
- aadTokenRefresher
- TokenRefresher
An optional delegate which will be called when the azure active directory token expires and can no longer be used to generate the partner credentials. This delegate should return an up to date azure active directory token.
- requestContext
- IRequestContext
An optional request context.
Returns
The partner service credentials.