Skip to content

Conversation

tanya732
Copy link
Contributor

@tanya732 tanya732 commented Jul 28, 2025

Changes

Added changes in below endpoint -

Path HTTP Method Method Name
/clients POST create
/clients GET getAll
/clients/{id} GET get
/clients/{id} PATCH update
/clients/{client_id}/rotate-secret POST rotateClientSecret

References

https://auth0.com/docs/api/management/v2/clients/get-clients
https://auth0.com/docs/api/management/v2/clients/post-clients
https://auth0.com/docs/api/management/v2/clients/get-clients-by-id
https://auth0.com/docs/api/management/v2/clients/patch-clients-by-id
https://auth0.com/docs/api/management/v2/clients/post-rotate-secret

Manual Testing Snippet

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

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

const getClients = await auth0Test.clients.get({client_id: "<CLIENT_ID>"});

const payload = {
    session_transfer: {
      can_create_session_transfer_token: true,
      allowed_authentication_methods: [
        "cookie"
      ],
      enforce_device_binding: "ip",
      allow_refresh_token: true,
      enforce_online_refresh_tokens: true,
      enforce_cascade_revocation: true
    }
  }
  //Update the client with Native to Web SSO Configuration
  const updateClient = await auth0Test.clients.update(
    { client_id: "<CLIENT_ID>" },
    payload as ClientUpdate
  );

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 July 28, 2025 15:53
@tanya732 tanya732 requested a review from a team as a code owner July 28, 2025 15:53
@tanya732 tanya732 merged commit a6cb7ae into master Jul 29, 2025
8 checks passed
@tanya732 tanya732 deleted the feat/sdk-6237-native-web-SSO branch July 29, 2025 04:19
@tanya732 tanya732 mentioned this pull request Aug 4, 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