Open
Description
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
- Call
ManagementClient.clients.getAll({ client_ids })
with a valid list of comma separated client_ids. - 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