Skip to content

"Client ID not supplied" warning with AuthenticationType.ExternalTokenManagement and new ctor #314

Closed
@fowl2

Description

@fowl2

Old code:

  new ServiceClient(
      instanceUrl: uri,
      tokenProviderFunction: GetToken,
      useUniqueInstance: true,
      logger: logger);

Result: a bunch of log messages, but no warnings.

Switching to the new constructor:

  new ServiceClient(connectionOptions: new()
  {
    AccessTokenProviderFunctionAsync = GetToken,
    AuthenticationType = Microsoft.PowerPlatform.Dataverse.Client.AuthenticationType.ExternalTokenManagement,
    ServiceUri = uri,
    Logger = logger,
  });

Result: warning Client ID not supplied, using SDK Sample Client ID for this connection logged each time.

edit: My understanding is that a client ID is not required when providing an access token directly. Setting the client ID property to null, "", or a value doesn't seem to have any effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions