Releases: box/box-python-sdk
Releases · box/box-python-sdk
Version 2.0.0a12
v2.0.0a12 Fix pylint error in box session.
Version 2.0.0a11
v2.0.0a11 Automatically retry JWT auth API calls that fail because of the exp c…
Version 2.0.0a10
- (Breaking change) Removed the
downscope_token()method from theOAuth2class. - Added support for the
can_view_pathparameter when creating new collaborations. - Added a
downscope_token()method to theClientclass. This generates a token that has its permissions reduced to the provided scopes and for the optionally providedFileorFolder. - Added methods for configuring
JWTAuthfrom config file:JWTAuth.from_settings_fileandJWTAuth.from_settings_dictionary. - Added
network_responseproperty toBoxOAuthException.
Version 2.0.0a9
- Increased required minimum version of six to 1.9.0.
- Add
**kwargsto JWTAuth constructor. Fixes #231. - Change
downscope_token()to return aTokenResponseobject. (Breaking interface change from v2.0.0a8.)
Version 1.5.5
Version 2.0.0a8
v2.0.0a8 Add tox rules for building/uploading PyPI packages (#223)
Version 2.0.0a7
- Auth objects can now be closed, which prevents them from being used to
request new tokens. This will also revoke any existing tokens (though that
feature can be disabled by passingrevoke=False). Also introduces a
closing()context manager method, which will auto-close the auth object
on exit.
Version 2.0.0a6
Breaking Changes
File.update_contents()andFile.update_contents_with_stream()now
correctly return aFileobject with the correct internal JSON structure.
Previously it would return aFileobject where the file JSON is hidden
insidefile['entries'][0]. This is a bugfix, but will be a breaking
change for any clients that have already written code to handle the bug.
Features
- The
JWTAuthconstructor now supports passing the RSA private key in two different
ways: by file system path (existing functionality), or by passing the key
data directly (new functionality). Thersa_private_key_file_sys_path
parameter is now optional, but it is required to pass exactly one of
rsa_private_key_file_sys_pathorrsa_private_key_data.
Other
- Bugfix so that the return value of
JWTAuth.refresh()correctly matches
that of the auth interface (by returning a tuple of
((access token), (refresh token or None)), instead of just the access token).
In particular, this fixes an exception inBoxSessionthat always occurred
when it tried to refresh anyJWTAuthobject.
Version 1.5.4
- Bugfix so that the return value of
JWTAuth.refresh()correctly matches
that of the auth interface (by returning a tuple of
((access token), (refresh token or None)), instead of just the access token).
In particular, this fixes an exception inBoxSessionthat always occurred
when it tried to refresh anyJWTAuthobject. - Fixed an exception that was being raised from
ExtendableEnumMeta.__dir__(). - CPython 3.6 support.
Version 2.0.0a5
Merge pull request #215 from josephroque/2.0.0a5-version-bump Prepare for next 2.0.0 alpha release