Skip to content

Version 2.0.0a6

Pre-release
Pre-release
Compare
Choose a tag to compare
@jmoldow jmoldow released this 14 Aug 17:13

Breaking Changes

  • File.update_contents() and File.update_contents_with_stream() now
    correctly return a File object with the correct internal JSON structure.
    Previously it would return a File object where the file JSON is hidden
    inside file['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). The rsa_private_key_file_sys_path
    parameter is now optional, but it is required to pass exactly one of
    rsa_private_key_file_sys_path or rsa_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 in BoxSession that always occurred
    when it tried to refresh any JWTAuth object.