Releases: globus/globus-sdk-javascript
Releases · globus/globus-sdk-javascript
v3.4.0
3.4.0 (2024-06-03)
Features
- Authorization: adds
additionalParams
option to allow passing arbitrary query parameters through OAuth redirects. (#170) (754b508)
managerInstance.handleErrorResponse(res, {
additionalParams: {
retained_state: "example-state",
retained_route: "example.route",
},
});
const request = await https.get(GCS_CONFIGURATION, '/my-file.txt', {
headers: {
Authorization: 'Bearer an-example-token',
},
});
Internal
We've updated the request composition to include an X-Globus-ClientInfo
header with requests. This header will include the current SDK version information for use by the Globus platform and support. e.g. X-Globus-ClientInfo: product=javascript-sdk,version=3.4.0;
.
v3.3.1
3.3.1 (2024-05-17)
Features
- An
AuthorizationManager
instance can now be provided as aSDKOption
; This allows auto-configuration of Authorization headers for requests made using the SDK.
- Removes
getTokenForScope
method. This method has been deprecated since the release of3.0.0
and with the newAuthorizationManager
is no longer useful; Tokens are stored byresource_server
, notscope
. - The shared
serviceRequest
method has been updated to retrieve tokens from anAuthorizationManager
, when passed viaSDKOptions
.
This change simplifies the creation of authorized versions of requests by automatically adding the Authorization
header found in the manager instance for the request.
Providing an Authorization
header prior to this change...
const manager = sdk.authorization.create({ ..., scopes: 'transfer...' });
sdk.transfer.endpointSearch({
headers: {
Authorization: `Bearer ${manager.tokens.transfer.access_token}`
}
};
Using an AuthorizationManager
instance to provide the Authorization
header...
const manager = sdk.authorization.create({ ..., scopes: 'transfer...' });
sdk.transfer.endpointSearch({...}, { manager });
headers
can still be passed as SDKOptions
and a provided headers.Authorization
value will take precedence over the manager-lookup.
Bug Fixes
v3.3.0
v3.2.0
v3.1.1
v3.1.0
v3.0.0
chore: release 3.0.0 (#150) ## [3.0.0](https://github.com/globus/globus-sdk-javascript/compare/v2.7.1...v3.0.0) (2024-04-24) ### ⚠ BREAKING CHANGES * adds support for Authorization and Globus (Auth) token management ([#120](https://github.com/globus/globus-sdk-javascript/issues/120)). - This is only a breaking change if you were using the _experimental_ authorization features in previous releases. ### Features * adds support for Authorization and Globus (Auth) token management ([#120](https://github.com/globus/globus-sdk-javascript/issues/120)) ([202e416](https://github.com/globus/globus-sdk-javascript/commit/202e416aa79d5bbeac23e00c1271f255789c8761)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>