Authsignal

Latest version: v4.0.3

Safety actively analyzes 706487 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

4.0.3

None

4.0.2

Authsignal Python SDK 4.0.0

Breaking Changes

Client Initialization
- The client initialization interface has been updated to use named parameters
- `api_secret_key` is now required (previously `api_key`)
- Optional parameters include `api_url` (defaults to "https://api.authsignal.com/v1") and `timeout` (defaults to 2.0 seconds)

SDK Methods
- All methods now use consistent parameter naming and typing
- Added type hints throughout the SDK for better IDE support and code safety
- Requests that require a body expect an `attributes` parameter which needs to be a dictionary of key value pairs, equivalent to the JSON input body. Please use camel case for the keys.

Method Updates
- `track()` now requires `user_id`, `action`, and `attributes` parameters
- `get_user()` now requires `user_id` parameter
- `update_user()` now requires `user_id` and `attributes` parameters
- `delete_user()` now requires `user_id` parameter
- `get_authenticators()` now requires `user_id` parameter
- `enroll_verified_authenticator()` now requires `user_id` and `attributes` parameters
- `delete_authenticator()` now requires `user_id` and `user_authenticator_id` parameters
- `validate_challenge()` now requires `attributes` parameter
- `get_action()` now requires `user_id`, `action`, and `idempotency_key` parameters
- `update_action()` now requires `user_id`, `action`, `idempotency_key`, and `attributes` parameters

Error Handling
- Improved error handling with custom `ApiException` class which is standardized across our SDKs

Migration Guide
If you're upgrading from a previous version, you'll need to:
1. Update your client initialization to use the new parameter names
2. Review all method calls to ensure they include the required parameters
3. Update error handling to work with the new `ApiException` format

3.0.0

Breaking Changes

1. **Action Code Deprecation in `validate_challenge`** (27):
The `action_code` field has been **deprecated** in favor of the `action` field in the `validate_challenge` response. If your integration relies on `action_code`, please update it to use `action` instead.

2. **Renamed `delete_user_authenticator` to `delete_authenticator`** (25):
The `delete_user_authenticator` method has been renamed to `delete_authenticator`. Ensure any calls to delete authenticators are updated, as the previous method name is no longer recognized.

Other Changes

- **Centralized Error Handling** (28):
Error handling has been centralized to streamline and standardize responses across different parts of the application. This change improves consistency in error responses.

- **Omit Null Values in Requests by Default** (26):
Requests now omit null values by default to align more closely with the behavior of our other SDKs. This adjustment enhances consistency across our ecosystem.

2.0.7

Changes

- **Add `action` option in `validate_challenge` method**: Ensures that the validated action matches the tracked action when the `action` parameter is provided.
- **Removed redundant `API_CHALLENGE_URL`**.
- **Automatically append `/v1` to `api_url` if not provided**.

2.0.6

None

2.0.5

Release Notes

New Features

`delete_user`
- **Description**: This method allows for the deletion of a user from Authsignal.
- **Parameters**:
- `user_id (string)`: The unique identifier of the user to be deleted.
- **Returns**: {"success": True}

`delete_user_authenticator`
- **Description**: This method securely deletes a user's authenticator.
- **Parameters**:
- `user_id (string)`: The unique identifier of the user.
- **Returns**: {"success": True}

`update_user`
- **Description**: Updates the details of an existing user.
- **Parameters**:
- `user_id (string)`: The user's unique identifier.
- `data (dict)`: Updated user details.
- **Returns**: The updated user

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.