Skip to content

Added support for Enabled Client Connections #1114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 4, 2025

Conversation

tanya732
Copy link
Contributor

@tanya732 tanya732 commented May 21, 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

Add getEnabledClients and updateEnabledClients methods

References

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

Manual Testing Code Snippets

Securely store your Client ID, Client Secret, and Management API token.
Install the SDK: npm install auth0

var auth0 = new ManagementClient({
domain: '{YOUR_TENANT_AND REGION}.auth0.com',
clientId: '{YOUR_CLIENT_ID}',
clientSecret: '{YOUR_CLIENT_SECRET}',
});

// Get Enabled clients for a connection
const resp = auth0.connections.getEnabledClients({<CLIENT_ID>});

// Update Enabled Clients for a connection
const payload = [
  { client_id: "<CLIENT_ID>", status: false }
];
const respUpdate = auth0.connections.updateEnabledClients(<CLIENT_ID>, payload);

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 unit test coverage
  • This change adds integration test coverage

Checklist

@tanya732 tanya732 marked this pull request as ready for review May 22, 2025 04:48
@tanya732 tanya732 requested a review from a team as a code owner May 22, 2025 04:48
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.

LGTM!

@tanya732 tanya732 merged commit 0863a00 into master Jun 4, 2025
8 checks passed
@tanya732 tanya732 deleted the sdk-add-updated-enabled-clients-connection-support branch June 4, 2025 09:43
@tanya732 tanya732 mentioned this pull request Jun 6, 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