Skip to content

Conversation

@ovidiul
Copy link

@ovidiul ovidiul commented Jul 20, 2020

It seems that application key support integration is pretty simple, after normal authorisation, the B2 Api sends back the main accountId in the response header which we can use for the rest of the API requests that require the master account ID to be present, like the listBuckets api call.

Could you review this and let me know if we can integrated this inside the main package?

@mlambley
Copy link
Contributor

mlambley commented Feb 3, 2021

Hi @ovidiul could you please run through the use case for your suggested changes here? It seems that it's aimed towards allowing this module to run with a single-bucket application key, rather than the master key.

The latest version, 1.5.0, allows application keys by letting the dev specify the bucket id, thus removing the need to look up the bucket id by name, which requires the master key.

I'm not sure what your suggested changes here do. Could you please explain it to me step-by-step? Thanks.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants