Skip to content

Conversation

tanya732
Copy link
Contributor

@tanya732 tanya732 commented Jul 21, 2025

Changes

Added below new Endpoints -

Path HTTP Method Method Name
/risk-assessments/settings GET getSettings
/risk-assessments/settings PATCH updateSettings
/risk-assessments/settings/new-device GET getNewDeviceSettings
/risk-assessments/settings/new-device PATCH updateNewDeviceSettings
/users/{id}/risk-assessments/clear POST clearRiskAssessors

References

Please include relevant links supporting this change such as a:

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

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 getRASettings = await auth0Test.riskAssessments.getSettings();

const updateRASettingsPayload : UpdateRiskAssessmentsSettingsRequestContent =  {
  enabled: true,
}
const updateRASettings = await auth0Test.riskAssessments.updateSettings(updateRASettingsPayload);

const getRASettingsND = await auth0Test.riskAssessments.getNewDeviceSettings();

const updateRASettingsNDPayload : UpdateRiskAssessmentsSettingsNewDeviceRequestContent =  {
  remember_for: 5,
}
const updateRASettingsND = await auth0Test.riskAssessments.updateNewDeviceSettings(updateRASettingsNDPayload);

const clearRiskAssessorsPayload: ClearAssessorsRequestContent = {
  connection: "Username-Password-Authentication",
  assessors: ["new-device"]
}

const clearRiskAssessors = await auth0Test.users.clearRiskAssessors({ id: "<ID>" }, clearRiskAssessorsPayload);

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 09:39
@tanya732 tanya732 requested a review from a team as a code owner July 28, 2025 09:39
@tanya732 tanya732 merged commit e292704 into master Jul 28, 2025
8 checks passed
@tanya732 tanya732 deleted the feat/sdk-6162-customize-device-remembrance-node-support branch July 28, 2025 11:50
@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