Skip to content

Conversation

@duo-falsetta
Copy link
Contributor

@duo-falsetta duo-falsetta commented Feb 28, 2025

…rules. Lint/format all code. Update minimum ruby version and versions used for testing to current supported version list. Update and add missing dependencies for upcoming ruby changes.

Description

Methods added to cover all documented Duo API methods for AdminAPI, AccountsAPI, AuthAPI, and DeviceAPI.

Motivation and Context

This makes it at least slightly nicer to interact with Duo's API rather than crafting and handling raw HTTP requests/responses. These were deliberately written to care about statically required parameters only, simply passing through optional params, and let the bulk of the validation and error messaging to come from the API response. The goal was to make this as "future proof" as possible without having to make changes for every single minute change in the API.

How Has This Been Tested?

This was tested to not break existing use of request(), and a LOT of basic tests were added for all the newly added methods.

Many of the helpers were confirmed with testing against an actual Duo tenant, though it was not practical/feasible to test all of them in this way (e.g. I don't have an account with telephony credits, a directory sync, etc).

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)

@duo-falsetta duo-falsetta force-pushed the slight_improvements branch 7 times, most recently from e2f0dc7 to 89ece4a Compare March 7, 2025 19:56
@duo-falsetta duo-falsetta force-pushed the slight_improvements branch 2 times, most recently from f4326bf to 732023f Compare March 13, 2025 17:59
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.

Please hold off on the version bump; and I had a couple questions.

…rules. Lint/format all code. Update minimum ruby version and versions used for testing to current supported version list. Update and add missing dependencies for upcoming ruby changes. Update ca_certs.pem.
@AaronAtDuo AaronAtDuo merged commit d68157d into duosecurity:master Apr 3, 2025
6 checks passed
@duo-falsetta duo-falsetta deleted the slight_improvements branch April 14, 2025 17:49
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