Skip to content

client_ids key on 'GetClientsRequest` type is invalid #1101

Open
@mallenbarracuda

Description

@mallenbarracuda

Checklist

  • I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

Per this documentation of the Get Clients API call client_ids is not a valid query parameter, but in the type definition of ManagementClient.clients.getAll():

async getAll(
    requestParameters: GetClientsRequest = {},
    initOverrides?: InitOverride
  ): Promise<ApiResponse<GetClients200Response>> {
    const queryParameters = runtime.applyQueryParams(requestParameters, [
      ...
      {
        key: 'client_ids',
        config: {},
      },
    ...
    ]);

    const response = await this.request(
      {
        path: `/clients`,
        method: 'GET',
        query: queryParameters,
      },
      initOverrides
    );

    return runtime.JSONApiResponse.fromResponse(response);
  }

it is being converted straight from the GetClientsRequest object into a query parameter. The API is ignoring this query parameter and does not filter the response accordingly.

Reproduction

  1. Call ManagementClient.clients.getAll({ client_ids }) with a valid list of comma separated client_ids.
  2. Check the response to see if only clients with the provided client_ids are returned

Additional context

No response

node-auth0 version

4.14.0

Node.js version

22.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions