A Python toolset for the RSA ID Plus cloud authentication platform
Project description
PyDPlus
A Python toolset for the RSA ID Plus cloud authentication platform.
| Latest Stable Release |
|
| Latest Beta/RC Release |
|
| Build Status |
|
| Supported Versions |
|
| Code Coverage |
|
| Documentation |
|
| Security Audits |
|
| License |
|
| Issues |
|
| Pull Requests |
|
Installation
Install from PyPI:
python -m pip install --upgrade pydplus
Install from source:
git clone https://github.com/jeffshurtliff/pydplus.git
cd pydplus
poetry install
Change Log
The change log can be found in the documentation.
Usage
PyDPlus is designed for Python-based administration workflows in RSA ID Plus tenants, including:
- user lifecycle automation (lookup, disable, mark for deletion)
- admin reporting and audit integrations
- helpdesk and identity-operations scripting
1) Import the package
from pydplus import PyDPlus, constants as const
2) Instantiate the client (OAuth example)
pydplus.PyDPlus supports both OAuth and Legacy credentials. OAuth (Private Key JWT) is recommended for new usage.
from pydplus import PyDPlus, constants as const
OAUTH_SCOPE = [
const.OAUTH_SCOPES.USER_READ,
const.OAUTH_SCOPES.USER_MANAGE,
]
pydp = PyDPlus(
connection_type="oauth",
base_admin_url="https://example-company.access.securid.com",
oauth_client_id="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
oauth_private_key="/path/to/oauth-private-key.jwk",
oauth_scope=OAUTH_SCOPE,
)
Legacy API authentication is also supported. See the Authentication guide for both patterns.
3) Define OAuth scopes (three practical options)
- Configure default scope permissions in the OAuth client settings in the RSA Cloud Administration Console.
- Define scopes explicitly in your code/helper/env configuration (manual string values or constants like
const.OAUTH_SCOPES.USER_READgrouped in anOAUTH_SCOPEvariable). - Use scope presets to apply scope bundles (for example
user_read_onlyorgroup_read_only) viaoauth_scope_preset(argument),connection.oauth.scope_preset(helper setting), orPYDPLUS_OAUTH_SCOPE_PRESET(environment variable).
In PyDPlus, keep oauth_scope explicitly defined (directly, helper file, or environment variable) so token requests
remain deterministic and validated.
Presets are additive and merged with explicit scopes:
pydp = PyDPlus(
connection_type="oauth",
base_admin_url="https://example-company.access.securid.com",
oauth_client_id="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
oauth_private_key="/path/to/oauth-private-key.jwk",
oauth_scope=const.OAUTH_SCOPES.USER_MANAGE,
oauth_scope_preset=("user_read_only", "group_read_only"),
)
4) Run an API operation
user_id = pydp.users.get_user_id(email="john.doe@example.com")
response = pydp.users.disable_user(user_id=user_id)
For deeper coverage, see:
- Quickstart: https://pydplus.readthedocs.io/en/stable/getting-started/quickstart.html
- Authentication guide: https://pydplus.readthedocs.io/en/stable/guides/authentication.html
- Client reference: https://pydplus.readthedocs.io/en/stable/reference/client.html
Documentation
The documentation is located here: https://pydplus.readthedocs.io/en/stable/
License
Reporting Issues
Issues can be reported within the GitHub repository.
Contributing
Contributions are welcome and appreciated, including bug fixes, documentation improvements, tests, and feature work. For full contribution requirements and workflows, please see CONTRIBUTING.md.
Development Quality Checks
This repository uses Ruff for linting, import sorting, and formatting.
The standard maximum line length for this package is 130 characters.
Line-length exceptions should be rare and limited to comments or special cases where wrapping harms readability.
When an exception is required, use a targeted per-line # noqa: E501 comment.
poetry run ruff check .
poetry run ruff check . --fix
poetry run ruff format .
poetry run ruff format . --check
These checks are enforced in CI via .github/workflows/ci.yml.
Donations
If you would like to donate to this project then you can do so using this PayPal link.
Disclaimer
This package is considered unofficial and is in no way endorsed or supported by RSA Security LLC.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydplus-1.0.0.tar.gz.
File metadata
- Download URL: pydplus-1.0.0.tar.gz
- Upload date:
- Size: 62.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b39df8f2cc44f3e87d02b82e30679d78bb4dc172262c4358b091d9247ebffa8a
|
|
| MD5 |
c8daae3bbbe1acb290d61468293885b4
|
|
| BLAKE2b-256 |
ef10a079b5761021b2de1dd8183fbb482f2602399f62b555c03e94ed72bf8f22
|
File details
Details for the file pydplus-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pydplus-1.0.0-py3-none-any.whl
- Upload date:
- Size: 67.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8e8473662963da6c436a21f6497ee9e7a5332b3973d3c7eef8959b7a56a8544
|
|
| MD5 |
1b60a158d1fa8275e21024dc34f8d1ad
|
|
| BLAKE2b-256 |
77a3477a5f933a947827069d4cebf9f6ce360f0bd31f1af4e5c2c96687a5d9e7
|