Descope

Latest version: v1.7.2

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

Scan your dependencies

Page 1 of 6

1.7.2

Enhancements
* **Impersonation JWT configurations**: We've expanded the `impersonate` function to allow passing `custom_claims` as well as `tenant_id`, so that the created JWT will include that information.

1.7.1

Enhancements
* **FGA 2.0 support**: Now that we've revamped our FGA support, we also updated [our SDK functions](https://github.com/descope/python-sdk?tab=readme-ov-file#manage-fga-fine-grained-authorization). Under `mgmt.fga` we now support 4 more functions:
* `save_schema` - Creates a new schema for the project.
* `create_relations` - Creates new relations for the project.
* `delete_relations` - Deletes relations for the project.
* `check` - Checks if the given relations are satisfied.
* **Template ID configuration for invitations**: Continuing the effort from our [previous release](https://github.com/descope/python-sdk/releases/tag/1.7.0), we've added the option to configure the `template_id` parameter when sending invitations to users.

1.7.0

Breaking changes
* **Support dropped for python 3.7**: Python 3.7 has been deprecated for over a year now, and after thorough checks and validations we came to the conclusions that our customers don't use it either - so we decided to drop the support for it.
If you are using this version, it is highly advised to upgrade to a later version.

Enhancements
* **Revoke other user sessions**: We added a new configuration in `LoginOptions` called `revoke_other_sessions`. This new configuration will expire all JWTs created other than the one in the request. This is useful for signing the user out of all their sessions, except for the current one.
* **Test user searching**: We added a new function named `search_all_test_users`, to filter over test users. Learn more from our [SDK's README](https://github.com/descope/python-sdk?tab=readme-ov-file#utils-for-your-end-to-end-e2e-tests-and-integration-tests).
* **Template ID configuration**: We added a new parameter named `template_id` to all 'sign up' / 'sign in' / 'sign up or in' functions, to allow controlling which custom email/sms template should be used by the function. This will override the default configuration set in the project's 'Authentication Methods' page.
* **Enhanced functionality for adding user roles**: With this new version of the `add_role` function, you can add a role to an existing user not just on the project level, but also on the tenant level. If the tenant isn't already associated with the user, it will happen as part of this command.

**Full Changelog**: https://github.com/descope/python-sdk/compare/1.6.10...1.7.0

1.6.10

Enhancements
* **Audience claim configuration in verification process**: We now allow passing the audience claim explicitly when verifying the session token. The new `audience` parameter in the `exchange_token` function can receive any string value, or stay empty by default.

1.6.9

Breaking changes
* **Scalable user searching**: We’ve made some improvements to enhance the scalability of our system to better support increased usage. These changes allow us to handle increased demand more efficiently, ensuring a smoother experience for all our customers.
As part of this update, there may be a delay (up to 100ms) in accessing newly written or updated user data from the search user endpoints. If you have any questions, feel free to reach out!

Enhancements
* **User tenant API**: We added an option to fetch a specific user's tenant(s) information from an active session. Using the new `my_tenants` function, you can query a current user's sessions' tenants details. See the example in the SDK's [README](https://github.com/descope/python-sdk?tab=readme-ov-file#my-tenants).
* **Tenant created time**: We added the tenant's creation time when loading the tenant (both in `load` and `load_all` functions).

1.6.8

Enhancements
* **Project tags**: Projects now have a `tags` attribute - a list of strings that can be used to distinguish your projects. Those can be updated using the `update_tags` command.

Bug fixes
* **JWT rotation enablement**: We fixed a bug that we found that caused the JWT rotation feature not to work with this specific SDK. This gap was fixed and now the feature is working properly.

Page 1 of 6

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.