Closed ian-young closed 2 months ago
This pull request introduces an optional TOTP (Time-based One-Time Password) feature, allowing users to authenticate without requiring TOTP for all accounts. The changes primarily involve refactoring the authentication logic to make TOTP optional and updating the relevant function calls across multiple files.
Files | Changes |
---|---|
VCE/delete_device.py VCE/gather_devices.py Demo_Org/delete_archives.py Demo_Org/list_archives.py Coding_Challenges/trigger_lockdown.py Coding_Challenges/schedule_override.py Coding_Challenges/open_door.py Coding_Challenges/Org_Management/inv_gather_devices.py QoL/authentication.py QoL/api_endpoints.py Coding_Challenges/command_login.py |
Refactored the authentication logic to make TOTP optional. Removed redundant login and logout functions from multiple files and replaced them with a centralized implementation in QoL/authentication.py. Updated function calls to use the new optional TOTP parameter. |
Feature Name
Description
Added the ability to optionally include a TOTP so it is no longer required for all accounts.
Fixes #23
Type of change
How Has This Been Tested?
This was tested by:
base case
]real-world case
]edge case
]Test Configuration:
Checklist:
Summary by Sourcery
Introduce optional TOTP support for authentication, refactor authentication functions to accommodate this change, and enhance error handling for better clarity.
New Features:
Enhancements:
Documentation: