Skip to content

Feat: Added purpose settings to connections endpoints#1196

Merged
tanya732 merged 1 commit into
v4from
sdk-6603-purpose-driven-
Oct 3, 2025
Merged

Feat: Added purpose settings to connections endpoints#1196
tanya732 merged 1 commit into
v4from
sdk-6603-purpose-driven-

Conversation

@tanya732
Copy link
Copy Markdown
Contributor

@tanya732 tanya732 commented Sep 29, 2025

Changes

Updates are added in below connection -

Path HTTP Method Method Name
/connections GET getAll
/connections POST create
/connection/{id} GET get
/connection/{id} PATCH update

Manual Testing Code

  1. Install node-auth0 using npm install auth0 and get domain, client_id and client_secret from Auth0 Dashboard.
const client = new ManagementClient({
    domain: "<DOMIN>",
    clientId: "<CLIENT_ID>",
    clientSecret: "<CLIENT_SECRET>"
});

// Get All Connections
const getAllConnection = await client.connections.getAll();
console.log("getAllConnection", getAllConnection);

const createConnectionPayload: ConnectionCreate = {
    name: "new-connection",
    strategy: "auth0",
    authentication: {
      active: false
    }
}

// Create Connection
const createConnection = await client.connections.create(createConnectionPayload);
console.log("createConnection", createConnection);

const updateConnectionPayload: ConnectionUpdate = {
  connected_accounts: {
    active: false,
    cross_app_access: false
  }
}

// Update Connection
const updateConnection = await client.connections.update({ id: createConnection.data.id! }, updateConnectionPayload);
console.log("updateConnection", updateConnection);

// Get Connection
const getConnection = await client.connections.get({ id: createConnection.data.id! });
console.log("getConnection", getConnection);

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

ngs to connections endpoints
@tanya732 tanya732 requested a review from a team as a code owner September 29, 2025 05:18
@tanya732 tanya732 merged commit 15f709a into v4 Oct 3, 2025
1 check passed
@tanya732 tanya732 deleted the sdk-6603-purpose-driven- branch October 3, 2025 10:17
@tanya732 tanya732 mentioned this pull request Oct 8, 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