Skip to content

Releases: authsignal/authsignal-python

4.0.3: Merge pull request #35 from authsignal/AUT-2461.8

09 Dec 21:23
94d4a20
Compare
Choose a tag to compare
AUT-2429: allowing track with no attributes

4.0.2

02 Dec 00:06
41ccbd2
Compare
Choose a tag to compare

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

30 Oct 00:44
4809c39
Compare
Choose a tag to compare

Version 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

21 Oct 04:19
2a9c1bb
Compare
Choose a tag to compare

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: Fix GitHub release process (#23)

09 Oct 01:56
0c28332
Compare
Choose a tag to compare
* Fix Github Release process

* Bump version

2.0.5

09 Oct 01:13
23378a7
Compare
Choose a tag to compare

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

Fix build issues

12 Jul 04:54
0fdc8ee
Compare
Choose a tag to compare
Fix build issues (#19)

* Revert poetry.lock to 1.0.4

* Remove securesystemslib from pyproject.toml

* Update poetry.lock

* Update gh-action-sigstore-python to v2.1.1

* Remove signing step from publish-to-testpypi

2.0.2

12 Jul 03:55
d465090
Compare
Choose a tag to compare

Fix build issue caused by securesystemslib

2.0.1

12 Jul 03:01
8b4cce1
Compare
Choose a tag to compare

Breaking changes:

validate_challenge function:

success is not returned anymore. Use is_valid instead.

validate_challenge now returns the following structure:

{
  action: string,
  is_valid: boolean,
  state: string,
  state_updated_at: iso_date_str,
  user_id: uuid,
  idempotency_key: uuid
}

1.0.4

06 Dec 21:25
28e60a0
Compare
Choose a tag to compare
  • Fix JWT decryption issue