ibm-cloud-sdk-core 3.2.1 → 3.2.2-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/authenticators/authenticator.js +1 -0
- package/auth/authenticators/basic-authenticator.js +7 -4
- package/auth/authenticators/bearer-token-authenticator.js +7 -4
- package/auth/authenticators/cloud-pak-for-data-authenticator.js +4 -1
- package/auth/authenticators/container-authenticator.js +4 -1
- package/auth/authenticators/iam-authenticator.js +5 -2
- package/auth/authenticators/iam-request-based-authenticator.js +4 -1
- package/auth/authenticators/index.js +11 -10
- package/auth/authenticators/no-auth-authenticator.js +4 -1
- package/auth/authenticators/token-request-based-authenticator.js +6 -3
- package/auth/authenticators/vpc-instance-authenticator.js +4 -1
- package/auth/index.js +17 -6
- package/auth/token-managers/container-token-manager.js +7 -4
- package/auth/token-managers/cp4d-token-manager.js +6 -3
- package/auth/token-managers/iam-request-based-token-manager.js +9 -6
- package/auth/token-managers/iam-token-manager.js +5 -2
- package/auth/token-managers/index.js +8 -7
- package/auth/token-managers/jwt-token-manager.js +5 -2
- package/auth/token-managers/token-manager.js +5 -4
- package/auth/token-managers/vpc-instance-token-manager.js +11 -8
- package/auth/utils/file-reading-helpers.browser.js +1 -0
- package/auth/utils/file-reading-helpers.js +12 -11
- package/auth/utils/get-authenticator-from-environment.js +3 -2
- package/auth/utils/helpers.js +5 -4
- package/auth/utils/index.js +19 -7
- package/auth/utils/read-external-sources.js +6 -5
- package/es/auth/authenticators/authenticator-interface.js +1 -0
- package/es/lib/request-wrapper.js +13 -5
- package/index.js +32 -12
- package/lib/base-service.js +7 -6
- package/lib/content-type.js +1 -1
- package/lib/get-new-logger.js +6 -5
- package/lib/helper.js +21 -18
- package/lib/logger.js +1 -1
- package/lib/querystring.js +1 -1
- package/lib/request-wrapper.js +54 -29
- package/lib/sdk-test-helpers.browser.js +1 -0
- package/lib/sdk-test-helpers.js +8 -7
- package/lib/stream-to-promise.js +1 -0
- package/package.json +40 -6
- package/.cra/.cveignore +0 -2
- package/.secrets.baseline +0 -542
- package/Authentication.md +0 -525
- package/CHANGELOG.md +0 -682
- package/LICENSE.md +0 -201
- package/MIGRATION-V1.md +0 -42
- package/README.md +0 -116
- package/api-extractor.json +0 -39
- package/appscan-config.xml +0 -7
- package/build/docs/ibm-cloud-sdk-core.atleastone.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.atmostone.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.authenticator._constructor_.md +0 -18
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticate.md +0 -28
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_basic.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_bearertoken.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_container.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_cp4d.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_iam.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_noauth.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_unknown.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.authtype_vpc.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.authenticator.md +0 -41
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticate.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticationtype.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.md +0 -21
- package/build/docs/ibm-cloud-sdk-core.baseservice._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.baseservice.baseoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.baseservice.configureservice.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.baseservice.createrequest.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.baseservice.default_service_name.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.baseservice.default_service_url.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.baseservice.disableretries.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.baseservice.enableretries.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.baseservice.getauthenticator.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.baseservice.gethttpclient.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.baseservice.md +0 -44
- package/build/docs/ibm-cloud-sdk-core.baseservice.setdefaultheaders.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.baseservice.setenablegzipcompression.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.baseservice.setserviceurl.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator._constructor_.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticate.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authheader.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.md +0 -39
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticate.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.md +0 -39
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.setbearertoken.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.buildrequestfileobject.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.checkcredentials.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator._constructor_.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.md +0 -38
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.computebasicauthheader.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.constructfilepath.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.constructserviceurl.md +0 -28
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator._constructor_.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.md +0 -40
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.md +0 -30
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.requesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.contenttype.md +0 -14
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.md +0 -35
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.requesttoken.md +0 -15
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileexistsatpath.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.fileobject.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.fileobject.options.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileobject.value.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileoptions.contenttype.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileoptions.filename.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.fileoptions.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.filestream.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.filestream.path.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.contenttype.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.data.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.filename.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.getauthenticatorfromenvironment.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.getcontenttype.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.getcurrenttime.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.getformat.md +0 -29
- package/build/docs/ibm-cloud-sdk-core.getmissingparams.md +0 -29
- package/build/docs/ibm-cloud-sdk-core.getnewlogger.md +0 -30
- package/build/docs/ibm-cloud-sdk-core.getqueryparam.md +0 -31
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator._constructor_.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.md +0 -38
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientid.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.clientsecret.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.getrefreshtoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.md +0 -38
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.scope.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md +0 -25
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.formdata.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.getrefreshtoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md +0 -38
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.refreshtoken.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.requesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.clientid.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.clientsecret.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.md +0 -23
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.scope.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.requiredoptions.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.isemptyobject.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.isfiledata.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.isfilewithmetadata.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.ishtml.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.md +0 -35
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.requesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.tokeninfo.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.tokenname.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanageroptions.md +0 -15
- package/build/docs/ibm-cloud-sdk-core.md +0 -96
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticate.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.noauthauthenticator.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.onlyone.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.qs.md +0 -21
- package/build/docs/ibm-cloud-sdk-core.readcredentialsfile.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.readcrtokenfile.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.readexternalsources.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.removesuffix.md +0 -27
- package/build/docs/ibm-cloud-sdk-core.sdklogger.debug.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.sdklogger.error.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.sdklogger.info.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.sdklogger.md +0 -22
- package/build/docs/ibm-cloud-sdk-core.sdklogger.verbose.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.sdklogger.warn.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.streamtopromise.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.striptrailingslash.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.tokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.accesstoken.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.disablesslverification.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.expiretime.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.gettoken.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.headers.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.md +0 -43
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.refreshtime.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.requesttoken.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.requestwrapperinstance.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setheaders.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.url.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenmanageroptions.md +0 -18
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.disablesslverification.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.headers.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md +0 -42
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.url.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.tolowerkeys.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkforsuccessfulexecution.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md +0 -28
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md +0 -28
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkuserheader.md +0 -28
- package/build/docs/ibm-cloud-sdk-core.unittestutils.expecttobepromise.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.unittestutils.getoptions.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.unittestutils.md +0 -17
- package/build/docs/ibm-cloud-sdk-core.useroptions.authenticator.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.disablesslverification.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.headers.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.jar.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.md +0 -26
- package/build/docs/ibm-cloud-sdk-core.useroptions.serviceurl.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.url.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.useroptions.version.md +0 -13
- package/build/docs/ibm-cloud-sdk-core.validateinput.md +0 -23
- package/build/docs/ibm-cloud-sdk-core.validateparams.md +0 -30
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.authenticationtype.md +0 -19
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.md +0 -39
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md +0 -11
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md +0 -20
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.md +0 -29
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md +0 -15
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md +0 -24
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md +0 -24
- package/build/docs/index.md +0 -12
- package/es/tsdoc-metadata.json +0 -11
- package/etc/ibm-cloud-sdk-core.api.md +0 -483
- package/temp/ibm-cloud-sdk-core.api.json +0 -7571
- package/temp/ibm-cloud-sdk-core.api.md +0 -483
- package/tsconfig-es6.json +0 -9
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [Authenticator](./ibm-cloud-sdk-core.authenticator.md)
|
|
4
|
-
|
|
5
|
-
## Authenticator class
|
|
6
|
-
|
|
7
|
-
Base Authenticator class for other Authenticators to extend. Not intended to be used as a stand-alone authenticator.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare class Authenticator implements AuthenticatorInterface
|
|
13
|
-
```
|
|
14
|
-
<b>Implements:</b> [AuthenticatorInterface](./ibm-cloud-sdk-core.authenticatorinterface.md)
|
|
15
|
-
|
|
16
|
-
## Constructors
|
|
17
|
-
|
|
18
|
-
| Constructor | Modifiers | Description |
|
|
19
|
-
| --- | --- | --- |
|
|
20
|
-
| [(constructor)()](./ibm-cloud-sdk-core.authenticator._constructor_.md) | | Create a new Authenticator instance. |
|
|
21
|
-
|
|
22
|
-
## Properties
|
|
23
|
-
|
|
24
|
-
| Property | Modifiers | Type | Description |
|
|
25
|
-
| --- | --- | --- | --- |
|
|
26
|
-
| [AUTHTYPE\_BASIC](./ibm-cloud-sdk-core.authenticator.authtype_basic.md) | <code>static</code> | string | Constants that define the various authenticator types. |
|
|
27
|
-
| [AUTHTYPE\_BEARERTOKEN](./ibm-cloud-sdk-core.authenticator.authtype_bearertoken.md) | <code>static</code> | string | |
|
|
28
|
-
| [AUTHTYPE\_CONTAINER](./ibm-cloud-sdk-core.authenticator.authtype_container.md) | <code>static</code> | string | |
|
|
29
|
-
| [AUTHTYPE\_CP4D](./ibm-cloud-sdk-core.authenticator.authtype_cp4d.md) | <code>static</code> | string | |
|
|
30
|
-
| [AUTHTYPE\_IAM](./ibm-cloud-sdk-core.authenticator.authtype_iam.md) | <code>static</code> | string | |
|
|
31
|
-
| [AUTHTYPE\_NOAUTH](./ibm-cloud-sdk-core.authenticator.authtype_noauth.md) | <code>static</code> | string | |
|
|
32
|
-
| [AUTHTYPE\_UNKNOWN](./ibm-cloud-sdk-core.authenticator.authtype_unknown.md) | <code>static</code> | string | |
|
|
33
|
-
| [AUTHTYPE\_VPC](./ibm-cloud-sdk-core.authenticator.authtype_vpc.md) | <code>static</code> | string | |
|
|
34
|
-
|
|
35
|
-
## Methods
|
|
36
|
-
|
|
37
|
-
| Method | Modifiers | Description |
|
|
38
|
-
| --- | --- | --- |
|
|
39
|
-
| [authenticate(requestOptions)](./ibm-cloud-sdk-core.authenticator.authenticate.md) | | Augment the request with authentication information. |
|
|
40
|
-
| [authenticationType()](./ibm-cloud-sdk-core.authenticator.authenticationtype.md) | | Retrieves the authenticator's type. The returned value will be the same string that is used when configuring an instance of the authenticator with the "<!-- --><<!-- -->service\_name<!-- -->><!-- -->\_AUTH\_TYPE" configuration property (e.g. "basic", "iam", etc.). This function should be overridden in each authenticator implementation class that extends this class. |
|
|
41
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [AuthenticatorInterface](./ibm-cloud-sdk-core.authenticatorinterface.md) > [authenticate](./ibm-cloud-sdk-core.authenticatorinterface.authenticate.md)
|
|
4
|
-
|
|
5
|
-
## AuthenticatorInterface.authenticate() method
|
|
6
|
-
|
|
7
|
-
Add authentication information to the specified request.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
authenticate(requestOptions: AuthenticateOptions): Promise<void>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| requestOptions | AuthenticateOptions | The request to augment with authentication information. |
|
|
20
|
-
|
|
21
|
-
<b>Returns:</b>
|
|
22
|
-
|
|
23
|
-
Promise<void>
|
|
24
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [AuthenticatorInterface](./ibm-cloud-sdk-core.authenticatorinterface.md) > [authenticationType](./ibm-cloud-sdk-core.authenticatorinterface.authenticationtype.md)
|
|
4
|
-
|
|
5
|
-
## AuthenticatorInterface.authenticationType() method
|
|
6
|
-
|
|
7
|
-
Returns a string that indicates the authentication type.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
authenticationType(): string;
|
|
13
|
-
```
|
|
14
|
-
<b>Returns:</b>
|
|
15
|
-
|
|
16
|
-
string
|
|
17
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [AuthenticatorInterface](./ibm-cloud-sdk-core.authenticatorinterface.md)
|
|
4
|
-
|
|
5
|
-
## AuthenticatorInterface interface
|
|
6
|
-
|
|
7
|
-
This interface defines the common methods associated with an Authenticator implementation.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export interface AuthenticatorInterface
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Methods
|
|
16
|
-
|
|
17
|
-
| Method | Description |
|
|
18
|
-
| --- | --- |
|
|
19
|
-
| [authenticate(requestOptions)](./ibm-cloud-sdk-core.authenticatorinterface.authenticate.md) | Add authentication information to the specified request. |
|
|
20
|
-
| [authenticationType()](./ibm-cloud-sdk-core.authenticatorinterface.authenticationtype.md) | Returns a string that indicates the authentication type. |
|
|
21
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [(constructor)](./ibm-cloud-sdk-core.baseservice._constructor_.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.(constructor)
|
|
6
|
-
|
|
7
|
-
Configuration values for a service.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
constructor(userOptions: UserOptions);
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| userOptions | [UserOptions](./ibm-cloud-sdk-core.useroptions.md) | |
|
|
20
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [baseOptions](./ibm-cloud-sdk-core.baseservice.baseoptions.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.baseOptions property
|
|
6
|
-
|
|
7
|
-
<b>Signature:</b>
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
protected baseOptions: BaseServiceOptions;
|
|
11
|
-
```
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [configureService](./ibm-cloud-sdk-core.baseservice.configureservice.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.configureService() method
|
|
6
|
-
|
|
7
|
-
Configure the service using external configuration
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
protected configureService(serviceName: string): void;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| serviceName | string | The name of the service. Will be used to read from external configuration. |
|
|
20
|
-
|
|
21
|
-
<b>Returns:</b>
|
|
22
|
-
|
|
23
|
-
void
|
|
24
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [createRequest](./ibm-cloud-sdk-core.baseservice.createrequest.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.createRequest() method
|
|
6
|
-
|
|
7
|
-
Wrapper around `sendRequest` that enforces the request will be authenticated.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
protected createRequest(parameters: any): Promise<any>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| parameters | any | Service request options passed in by user. |
|
|
20
|
-
|
|
21
|
-
<b>Returns:</b>
|
|
22
|
-
|
|
23
|
-
Promise<any>
|
|
24
|
-
|
|
25
|
-
{<!-- -->Promise<any>}
|
|
26
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [DEFAULT\_SERVICE\_NAME](./ibm-cloud-sdk-core.baseservice.default_service_name.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.DEFAULT\_SERVICE\_NAME property
|
|
6
|
-
|
|
7
|
-
<b>Signature:</b>
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
static DEFAULT_SERVICE_NAME: string;
|
|
11
|
-
```
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [DEFAULT\_SERVICE\_URL](./ibm-cloud-sdk-core.baseservice.default_service_url.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.DEFAULT\_SERVICE\_URL property
|
|
6
|
-
|
|
7
|
-
<b>Signature:</b>
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
static DEFAULT_SERVICE_URL: string;
|
|
11
|
-
```
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [disableRetries](./ibm-cloud-sdk-core.baseservice.disableretries.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.disableRetries() method
|
|
6
|
-
|
|
7
|
-
Disables retries.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
disableRetries(): void;
|
|
13
|
-
```
|
|
14
|
-
<b>Returns:</b>
|
|
15
|
-
|
|
16
|
-
void
|
|
17
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [enableRetries](./ibm-cloud-sdk-core.baseservice.enableretries.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.enableRetries() method
|
|
6
|
-
|
|
7
|
-
Enable retries for unfulfilled requests.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
enableRetries(retryOptions?: RetryOptions): void;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| retryOptions | RetryOptions | <i>(Optional)</i> configuration for retries |
|
|
20
|
-
|
|
21
|
-
<b>Returns:</b>
|
|
22
|
-
|
|
23
|
-
void
|
|
24
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [getAuthenticator](./ibm-cloud-sdk-core.baseservice.getauthenticator.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.getAuthenticator() method
|
|
6
|
-
|
|
7
|
-
Get the instance of the authenticator set on the service.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
getAuthenticator(): any;
|
|
13
|
-
```
|
|
14
|
-
<b>Returns:</b>
|
|
15
|
-
|
|
16
|
-
any
|
|
17
|
-
|
|
18
|
-
{<!-- -->Authenticator<!-- -->}
|
|
19
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [getHttpClient](./ibm-cloud-sdk-core.baseservice.gethttpclient.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.getHttpClient() method
|
|
6
|
-
|
|
7
|
-
Get the Axios instance set on the service. All requests will be made using this instance.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
getHttpClient(): import("axios").AxiosInstance;
|
|
13
|
-
```
|
|
14
|
-
<b>Returns:</b>
|
|
15
|
-
|
|
16
|
-
import("axios").AxiosInstance
|
|
17
|
-
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md)
|
|
4
|
-
|
|
5
|
-
## BaseService class
|
|
6
|
-
|
|
7
|
-
Common functionality shared by generated service classes.
|
|
8
|
-
|
|
9
|
-
The base service authenticates requests via its authenticator, and sends them to the service endpoint.
|
|
10
|
-
|
|
11
|
-
<b>Signature:</b>
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
export declare class BaseService
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Constructors
|
|
18
|
-
|
|
19
|
-
| Constructor | Modifiers | Description |
|
|
20
|
-
| --- | --- | --- |
|
|
21
|
-
| [(constructor)(userOptions)](./ibm-cloud-sdk-core.baseservice._constructor_.md) | | Configuration values for a service. |
|
|
22
|
-
|
|
23
|
-
## Properties
|
|
24
|
-
|
|
25
|
-
| Property | Modifiers | Type | Description |
|
|
26
|
-
| --- | --- | --- | --- |
|
|
27
|
-
| [baseOptions](./ibm-cloud-sdk-core.baseservice.baseoptions.md) | | BaseServiceOptions | |
|
|
28
|
-
| [DEFAULT\_SERVICE\_NAME](./ibm-cloud-sdk-core.baseservice.default_service_name.md) | <code>static</code> | string | |
|
|
29
|
-
| [DEFAULT\_SERVICE\_URL](./ibm-cloud-sdk-core.baseservice.default_service_url.md) | <code>static</code> | string | |
|
|
30
|
-
|
|
31
|
-
## Methods
|
|
32
|
-
|
|
33
|
-
| Method | Modifiers | Description |
|
|
34
|
-
| --- | --- | --- |
|
|
35
|
-
| [configureService(serviceName)](./ibm-cloud-sdk-core.baseservice.configureservice.md) | | Configure the service using external configuration |
|
|
36
|
-
| [createRequest(parameters)](./ibm-cloud-sdk-core.baseservice.createrequest.md) | | Wrapper around <code>sendRequest</code> that enforces the request will be authenticated. |
|
|
37
|
-
| [disableRetries()](./ibm-cloud-sdk-core.baseservice.disableretries.md) | | Disables retries. |
|
|
38
|
-
| [enableRetries(retryOptions)](./ibm-cloud-sdk-core.baseservice.enableretries.md) | | Enable retries for unfulfilled requests. |
|
|
39
|
-
| [getAuthenticator()](./ibm-cloud-sdk-core.baseservice.getauthenticator.md) | | Get the instance of the authenticator set on the service. |
|
|
40
|
-
| [getHttpClient()](./ibm-cloud-sdk-core.baseservice.gethttpclient.md) | | Get the Axios instance set on the service. All requests will be made using this instance. |
|
|
41
|
-
| [setDefaultHeaders(headers)](./ibm-cloud-sdk-core.baseservice.setdefaultheaders.md) | | Set the HTTP headers to be sent in every request. |
|
|
42
|
-
| [setEnableGzipCompression(setting)](./ibm-cloud-sdk-core.baseservice.setenablegzipcompression.md) | | Turn request body compression on or off. |
|
|
43
|
-
| [setServiceUrl(url)](./ibm-cloud-sdk-core.baseservice.setserviceurl.md) | | Set the service URL to send requests to. |
|
|
44
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [setDefaultHeaders](./ibm-cloud-sdk-core.baseservice.setdefaultheaders.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.setDefaultHeaders() method
|
|
6
|
-
|
|
7
|
-
Set the HTTP headers to be sent in every request.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
setDefaultHeaders(headers: OutgoingHttpHeaders): void;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| headers | OutgoingHttpHeaders | The map of headers to include in requests. |
|
|
20
|
-
|
|
21
|
-
<b>Returns:</b>
|
|
22
|
-
|
|
23
|
-
void
|
|
24
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [setEnableGzipCompression](./ibm-cloud-sdk-core.baseservice.setenablegzipcompression.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.setEnableGzipCompression() method
|
|
6
|
-
|
|
7
|
-
Turn request body compression on or off.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
setEnableGzipCompression(setting: boolean): void;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| setting | boolean | Will turn it on if 'true', off if 'false'. |
|
|
20
|
-
|
|
21
|
-
<b>Returns:</b>
|
|
22
|
-
|
|
23
|
-
void
|
|
24
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BaseService](./ibm-cloud-sdk-core.baseservice.md) > [setServiceUrl](./ibm-cloud-sdk-core.baseservice.setserviceurl.md)
|
|
4
|
-
|
|
5
|
-
## BaseService.setServiceUrl() method
|
|
6
|
-
|
|
7
|
-
Set the service URL to send requests to.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
setServiceUrl(url: string): void;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| url | string | The base URL for the service. |
|
|
20
|
-
|
|
21
|
-
<b>Returns:</b>
|
|
22
|
-
|
|
23
|
-
void
|
|
24
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BasicAuthenticator](./ibm-cloud-sdk-core.basicauthenticator.md) > [(constructor)](./ibm-cloud-sdk-core.basicauthenticator._constructor_.md)
|
|
4
|
-
|
|
5
|
-
## BasicAuthenticator.(constructor)
|
|
6
|
-
|
|
7
|
-
Create a new BasicAuthenticator instance.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
constructor(options: Options);
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| options | Options | Configuration options for basic authentication. |
|
|
20
|
-
|
|
21
|
-
## Exceptions
|
|
22
|
-
|
|
23
|
-
{<!-- -->Error<!-- -->} The configuration options are not valid.
|
|
24
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BasicAuthenticator](./ibm-cloud-sdk-core.basicauthenticator.md) > [authenticate](./ibm-cloud-sdk-core.basicauthenticator.authenticate.md)
|
|
4
|
-
|
|
5
|
-
## BasicAuthenticator.authenticate() method
|
|
6
|
-
|
|
7
|
-
Add basic authentication information to `request`<!-- -->. The basic authentication information will be set in the Authorization property of`request.headers` in the form:
|
|
8
|
-
|
|
9
|
-
Authorization: Basic <<!-- -->encoded username and password<!-- -->>
|
|
10
|
-
|
|
11
|
-
<b>Signature:</b>
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
authenticate(requestOptions: AuthenticateOptions): Promise<void>;
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Parameters
|
|
18
|
-
|
|
19
|
-
| Parameter | Type | Description |
|
|
20
|
-
| --- | --- | --- |
|
|
21
|
-
| requestOptions | AuthenticateOptions | The request to augment with authentication information. |
|
|
22
|
-
|
|
23
|
-
<b>Returns:</b>
|
|
24
|
-
|
|
25
|
-
Promise<void>
|
|
26
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BasicAuthenticator](./ibm-cloud-sdk-core.basicauthenticator.md) > [authenticationType](./ibm-cloud-sdk-core.basicauthenticator.authenticationtype.md)
|
|
4
|
-
|
|
5
|
-
## BasicAuthenticator.authenticationType() method
|
|
6
|
-
|
|
7
|
-
Returns the authenticator's type ('basic').
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
authenticationType(): string;
|
|
13
|
-
```
|
|
14
|
-
<b>Returns:</b>
|
|
15
|
-
|
|
16
|
-
string
|
|
17
|
-
|
|
18
|
-
a string that indicates the authenticator's type
|
|
19
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BasicAuthenticator](./ibm-cloud-sdk-core.basicauthenticator.md) > [authHeader](./ibm-cloud-sdk-core.basicauthenticator.authheader.md)
|
|
4
|
-
|
|
5
|
-
## BasicAuthenticator.authHeader property
|
|
6
|
-
|
|
7
|
-
<b>Signature:</b>
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
protected authHeader: {
|
|
11
|
-
Authorization: string;
|
|
12
|
-
};
|
|
13
|
-
```
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BasicAuthenticator](./ibm-cloud-sdk-core.basicauthenticator.md)
|
|
4
|
-
|
|
5
|
-
## BasicAuthenticator class
|
|
6
|
-
|
|
7
|
-
The BasicAuthenticator is used to add basic authentication information to requests.
|
|
8
|
-
|
|
9
|
-
Basic Authorization will be sent as an Authorization header in the form:
|
|
10
|
-
|
|
11
|
-
Authorization: Basic <<!-- -->encoded username and password<!-- -->>
|
|
12
|
-
|
|
13
|
-
<b>Signature:</b>
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
export declare class BasicAuthenticator extends Authenticator
|
|
17
|
-
```
|
|
18
|
-
<b>Extends:</b> [Authenticator](./ibm-cloud-sdk-core.authenticator.md)
|
|
19
|
-
|
|
20
|
-
## Constructors
|
|
21
|
-
|
|
22
|
-
| Constructor | Modifiers | Description |
|
|
23
|
-
| --- | --- | --- |
|
|
24
|
-
| [(constructor)(options)](./ibm-cloud-sdk-core.basicauthenticator._constructor_.md) | | Create a new BasicAuthenticator instance. |
|
|
25
|
-
|
|
26
|
-
## Properties
|
|
27
|
-
|
|
28
|
-
| Property | Modifiers | Type | Description |
|
|
29
|
-
| --- | --- | --- | --- |
|
|
30
|
-
| [authHeader](./ibm-cloud-sdk-core.basicauthenticator.authheader.md) | | { Authorization: string; } | |
|
|
31
|
-
| [requiredOptions](./ibm-cloud-sdk-core.basicauthenticator.requiredoptions.md) | | string\[\] | |
|
|
32
|
-
|
|
33
|
-
## Methods
|
|
34
|
-
|
|
35
|
-
| Method | Modifiers | Description |
|
|
36
|
-
| --- | --- | --- |
|
|
37
|
-
| [authenticate(requestOptions)](./ibm-cloud-sdk-core.basicauthenticator.authenticate.md) | | Add basic authentication information to <code>request</code>. The basic authentication information will be set in the Authorization property of<code>request.headers</code> in the form:<!-- -->Authorization: Basic <<!-- -->encoded username and password<!-- -->> |
|
|
38
|
-
| [authenticationType()](./ibm-cloud-sdk-core.basicauthenticator.authenticationtype.md) | | Returns the authenticator's type ('basic'). |
|
|
39
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BasicAuthenticator](./ibm-cloud-sdk-core.basicauthenticator.md) > [requiredOptions](./ibm-cloud-sdk-core.basicauthenticator.requiredoptions.md)
|
|
4
|
-
|
|
5
|
-
## BasicAuthenticator.requiredOptions property
|
|
6
|
-
|
|
7
|
-
<b>Signature:</b>
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
protected requiredOptions: string[];
|
|
11
|
-
```
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BearerTokenAuthenticator](./ibm-cloud-sdk-core.bearertokenauthenticator.md) > [(constructor)](./ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md)
|
|
4
|
-
|
|
5
|
-
## BearerTokenAuthenticator.(constructor)
|
|
6
|
-
|
|
7
|
-
Create a new BearerTokenAuthenticator instance.
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
constructor(options: Options);
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| options | Options | Configuration options for bearer authentication. |
|
|
20
|
-
|
|
21
|
-
## Exceptions
|
|
22
|
-
|
|
23
|
-
{<!-- -->Error<!-- -->} The configuration bearerToken is not valid, or unspecified.
|
|
24
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BearerTokenAuthenticator](./ibm-cloud-sdk-core.bearertokenauthenticator.md) > [authenticate](./ibm-cloud-sdk-core.bearertokenauthenticator.authenticate.md)
|
|
4
|
-
|
|
5
|
-
## BearerTokenAuthenticator.authenticate() method
|
|
6
|
-
|
|
7
|
-
Add a bearer token to the `request`<!-- -->. The bearer token information will be set in the Authorization property of`request.headers` in the form:
|
|
8
|
-
|
|
9
|
-
Authorization: Bearer <bearer-token>
|
|
10
|
-
|
|
11
|
-
<b>Signature:</b>
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
authenticate(requestOptions: AuthenticateOptions): Promise<void>;
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Parameters
|
|
18
|
-
|
|
19
|
-
| Parameter | Type | Description |
|
|
20
|
-
| --- | --- | --- |
|
|
21
|
-
| requestOptions | AuthenticateOptions | The request to augment with authentication information. |
|
|
22
|
-
|
|
23
|
-
<b>Returns:</b>
|
|
24
|
-
|
|
25
|
-
Promise<void>
|
|
26
|
-
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [BearerTokenAuthenticator](./ibm-cloud-sdk-core.bearertokenauthenticator.md) > [authenticationType](./ibm-cloud-sdk-core.bearertokenauthenticator.authenticationtype.md)
|
|
4
|
-
|
|
5
|
-
## BearerTokenAuthenticator.authenticationType() method
|
|
6
|
-
|
|
7
|
-
Returns the authenticator's type ('bearertoken').
|
|
8
|
-
|
|
9
|
-
<b>Signature:</b>
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
authenticationType(): string;
|
|
13
|
-
```
|
|
14
|
-
<b>Returns:</b>
|
|
15
|
-
|
|
16
|
-
string
|
|
17
|
-
|
|
18
|
-
a string that indicates the authenticator's type
|
|
19
|
-
|