Version 2.0.0a6
Pre-release
Pre-release
Breaking Changes
File.update_contents()
andFile.update_contents_with_stream()
now
correctly return aFile
object with the correct internal JSON structure.
Previously it would return aFile
object 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
JWTAuth
constructor 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_path
orrsa_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 inBoxSession
that always occurred
when it tried to refresh anyJWTAuth
object.