Skip to content
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

Add support for v5 signatures #48

Merged
merged 10 commits into from
Jan 12, 2024
Merged

Conversation

jaherne-duo
Copy link
Contributor

Description

Adds a new field to jsonApiCall to support v5 signatures. Also adds a new example file showing how to call Policy API endpoints.

Motivation and Context

We've received requests to add support for Policy Admin API endpoints with the Node.js client.

How Has This Been Tested?

Added new test file, verified that existing calls did not break.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@AaronAtDuo
Copy link
Contributor

@jaherne-duo I don't 100% follow the CI errors but based on the versions that failed, I'm gonna guess you tried to use a feature that was added in Node 14 so the lower versions fail?

lib/main.js Outdated Show resolved Hide resolved
lib/main.js Outdated Show resolved Hide resolved
lib/main.js Outdated Show resolved Hide resolved
lib/main.js Outdated Show resolved Hide resolved
Copy link
Contributor

@AaronAtDuo AaronAtDuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

example/duo_admin_policy.js Outdated Show resolved Hide resolved
example/duo_admin_policy.js Outdated Show resolved Hide resolved
@AaronAtDuo AaronAtDuo merged commit 8600ac3 into duosecurity:master Jan 12, 2024
5 checks passed
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