Skip to content

Conversation

@tanya732
Copy link
Contributor

@tanya732 tanya732 commented May 26, 2025

Changes

Added 2 New Endpoints

Path HTTP Method Method Name
/connections/{id}/clients GET getEnabledClients
/connections/{id}/clients PATCH updateEnabledClients

Marked enabled_clients field as Deprecated in GET/PATCH Connection Endpoints

Manual Testing Code

  1. Get domain and apiToken from tenant
ManagementAPI mgmt = ManagementAPI.newBuilder("{YOUR_DOMAIN}", "{YOUR_API_TOKEN}").build(); 

EnabledClientResponse enabledClientResponse = api.connections().getEnabledClients("<CONNECTION_ID>", new EnabledClientsFilter().withTake(5)).execute().getBody();
List<Clients> clients = enabledClientResponse.getClients();

List<EnabledClientRequest> requestList = new ArrayList<>();
EnabledClientRequest request = new EnabledClientRequest("CLIENT_ID",<STATUS>);
requestList.add(request);
api.connections().updateEnabledClients("<CONNECTION_ID>", requestList).execute();

References

https://auth0.com/docs/api/management/v2/connections/get-connection-clients
https://auth0.com/docs/api/management/v2/connections/patch-clients

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@tanya732 tanya732 requested a review from a team as a code owner May 26, 2025 08:15
Copy link

@kishore7snehil kishore7snehil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGRM!

@tanya732 tanya732 merged commit df04f2e into master May 28, 2025
6 checks passed
@tanya732 tanya732 deleted the sdk-add-updated-enabled-clients-connection-support branch May 28, 2025 13:37
@tanya732 tanya732 mentioned this pull request May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants