Releases: keboola/api-bundle
Releases · keboola/api-bundle
Release list
6.1.0
- Own the Storage run id generator:
StorageApiClient\StorageClientRequestFactorynow takes the run id generator as its own optionalClosure(ClientOptions): stringdependency instead of reading it offClientOptions. Run id resolution is unchanged:X-KBC-RunIdheader → configured generator →uniqid('run-'). - New
keboola_api.storage_client_options.run_id_generatorconfig knob injects that generator (a service that resolves to aClosure, exposed via a factory). It is grouped with the other Storage client options but wired to the client factory rather than merged intoClientOptions, so it may accompany theserviceform. This replaces setting arunIdGeneratoron a customClientOptionsservice. - Requires
keboola/storage-api-php-client-branch-wrapper^7.0, which removedClientOptions::runIdGeneratorand itsFactory\StorageClientRequestFactory.
Full Changelog: 6.0.0...6.1.0
6.0.0
- Rework of
#[StorageApiTokenAuth]internals — drops the dependency onkeboola/storage-api-php-client-branch-wrapper'sStorageClientRequestFactory(consuming apps no longer need to register it) and simplifies the auth classes. Supported auth paths behave unchanged: legacyX-StorageApi-Token, OAuthAuthorization: Bearer, and the programmatickbc_at_*/kbc_pat_*exchange. - [BC]
Security\TokenAuthenticatorInterfaceis now generic over the extracted credential (@template TCredential);extractToken(): ?stringbecomesextractCredential(Request): ?TCredential, whose result is passed toauthenticateToken(). Update any custom implementors. - [BC]
Security\StorageApiToken\ProgrammaticTokenwas removed —kbc_at_*/kbc_pat_*detection now lives in the request-token classification (RequestToken::tryFromRequest()). - [BC]
StorageApiClient\StorageClientApiFactoryconstructor signature changed and its unused publicRUN_ID_HEADERconst was removed; the controller-facingcreateClientWrapper()method is unchanged. Security\StorageApiToken\StorageApiTokenFactorynow exposescreateFromValue()(verify a Storage/OAuth token) andexchangeFromProgrammaticToken()(Manage-resolver exchange); a single@internalStorageClientRequestFactorybuilds every StorageClientWrapper.
Full Changelog: 5.3.0...6.0.0
5.3.0
- Add optional
keboola_api.storage_client_optionsconfig node to tune the Storage API client's baseClientOptions— either aClientOptionsservice id (string) or individual options (backoff_max_tries,aws_retries,aws_debug,retry_on_maintenance,use_branch_storage,user_agent,logger). See README.md.
Full Changelog: 5.2.0...5.3.0
5.2.0
- Tag
StorageApiTokenwith its auth type (AuthType) so the resolved Storage client authenticates correctly for OAuth (kbc_at_*/kbc_pat_*) tokens. - Require released
keboola/storage-api-php-client-branch-wrapper^6.8.0.
Full Changelog: 5.1.0...5.2.0
5.1.0
- Add
StorageClientApiFactory— a request-bound Storage API client factory injectable into controllers via an argument value resolver. Nullable arguments resolve tonullwhen the request carries no Storage API token.
Full Changelog: 5.0.0...5.1.0
5.0.0
- Add support for
kbc_at_*andkbc_pat_*tokens withinStorageApiTokenAuth - [BC] Testing traits were updated to support injecting new dependencies in authenticator. See README.md for detail on how to update.
Full Changelog: 4.0.0...5.0.0
4.0.0
- [BC] Reworked
ManageApiTokenAuthtoApplicationTokenAuthwith added support for ServiceAccount token
Full Changelog: 3.11.0...4.0.0
3.11.0
3.10.0
Allow permission checker 3.0
https://github.com/keboola/permission-checker/releases/tag/3.0.0
Full Changelog: 3.9.0...3.10.0
3.9.0
Add support for authenticating Storage API requests using Authorization: Bearer header as an alternative to X-StorageApi-Token
Full Changelog: 3.8.2...3.9.0