Skip to content

Conversation

marcossegovia
Copy link

@marcossegovia marcossegovia commented May 8, 2025

Changes

This PR introduces support for updating an existing client credential via the Auth0 Management API.

  • Added:
    • ClientsEntity.updateCredential(String clientId, String credentialId, Credential credential)
      A new method that issues a PATCH request to /api/v2/clients/{client_id}/credentials/{credential_id}.
  • Purpose:
    • Enables updating properties of a specific client credential, including the expires_at property, which is the only one documented today.
  • Requirements:
    • The request must be authenticated with a token containing the update:client_credentials scope.

References

Please include relevant links supporting this change such as a:

  • support ticket
  • community post
  • StackOverflow post
  • support forum thread

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

@marcossegovia marcossegovia requested a review from a team as a code owner May 8, 2025 16:36
@tanya732
Copy link
Contributor

@marcossegovia,

Thank you for raising the PR!!

Request you to sign your commits.

@tanya732
Copy link
Contributor

@marcossegovia

The PR looks good overall! Just a few points:

  1. Add test cases.
  2. Include sample code for better community understanding.
  3. Provide references or documentation.
  4. Please sign your commits.

Post that we are good to merge the PR.

Thank you

…l method

- Add test cases for updateCredential method including null parameter validation
- Add comprehensive client credential management documentation to EXAMPLES.md
- Include examples for all credential CRUD operations with required scopes
- Document the new updateCredential functionality with proper usage examples
@marcossegovia marcossegovia force-pushed the support-for-patch-clients-credentials branch from 204acc2 to 68c9192 Compare July 26, 2025 12:29
@marcossegovia
Copy link
Author

Hi @tanya732 it should be all set. Sorry the delay

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.

2 participants