Skip to content

feat: add support for managing blocked devices in admin API #293

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MarkTripod-Duo
Copy link
Contributor

Added methods to block, unblock, and fetch blocked devices via the admin API. Updated test cases to validate the new functionality, including support for pagination and operations by device ID.

Description

Add the following methods to support recent additions to the Admin API for managing Duo Desktop registered devices:

  • get_blocked_devices_generator()
  • get_blocked_devices()
  • get_blocked_device_by_id()
  • block_registered_devices()
  • block_registered_device_by_id()
  • unblock_registered_devices()
  • unblock_registered_device_by_id()

Motivation and Context

These new methods were added to support recent additions to the Admin API registered devices endpoint.

How Has This Been Tested?

Tested manually with personal Duo account.
Added test cases in test_registered_devices.py and verified using nose2.

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)

Added methods to block, unblock, and fetch blocked devices via the admin API. Updated test cases to validate the new functionality, including support for pagination and operations by device ID.
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.

1 participant