Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make providing bucket id optional if auth returns bucket id #63

Open
SayakMukhopadhyay opened this issue Mar 10, 2019 · 4 comments
Open

Comments

@SayakMukhopadhyay
Copy link

B2 returns the bucket id on authorisation if the auth key is for a particular bucket. Thus, one can store the bucket id in the instance too and use it if bucket id is not passed in a function call.

I am open to implementing this myself. Looking for feedback initially.

@cbess
Copy link
Collaborator

cbess commented Mar 12, 2019

Please provide the documentation for this behavior from the B2 API.

@SayakMukhopadhyay
Copy link
Author

This is described in https://www.backblaze.com/b2/docs/b2_authorize_account.html under the responses section.
image
image

@odensc
Copy link
Collaborator

odensc commented Jun 19, 2019

Good idea - a PR would be nice :)

@SayakMukhopadhyay
Copy link
Author

All right. I will work on this and hopefully will be creating a PR sometime next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants