PartnerCredentials.GenerateByUserCredentials Method

Definition

Generates partner credentials using a user plus application azure active directory token.

public Microsoft.Store.PartnerCenter.IPartnerCredentials GenerateByUserCredentials (string clientId, Microsoft.Store.PartnerCenter.AuthenticationToken authenticationToken, Microsoft.Store.PartnerCenter.Extensions.TokenRefresher aadTokenRefresher = default, Microsoft.Store.PartnerCenter.RequestContext.IRequestContext requestContext = default);
member this.GenerateByUserCredentials : string * Microsoft.Store.PartnerCenter.AuthenticationToken * Microsoft.Store.PartnerCenter.Extensions.TokenRefresher * Microsoft.Store.PartnerCenter.RequestContext.IRequestContext -> Microsoft.Store.PartnerCenter.IPartnerCredentials
Public Function GenerateByUserCredentials (clientId As String, authenticationToken As AuthenticationToken, Optional aadTokenRefresher As TokenRefresher = Nothing, Optional requestContext As IRequestContext = Nothing) As 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.

Applies to