v2 API requires changes to authorization flow #41
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
| ★ wanayoo — archive 1999 https://github.com/synapticloop/backblaze-b2-java-api/issues/41 | Nouvelle recherche | Portail wanayoo |
In regard to ../b2/response/B2AuthorizeAccountResponse.java:
In v2 of the API there can now be application key pairs that have permission to only ever read specific buckets.
https://www.backblaze.com/b2/docs/application_keys.html#usingRestrictedKeys
As a result there needs to be a new attribute in the b2client object that includes a list of "Allowed" buckets. The response from Backblaze now looks like this:
And add some sort of functionality like b2AuthorizeAccountResponse.getAllowedBuckets()
Similarly .../b2/request/B2ListBucketsRequest.java will need to be extended to avoid the error scenario where listing buckets results in a permission error even though the account can list specific buckets.
The text was updated successfully, but these errors were encountered: