ibm-cloud-sdk-core 4.0.0 → 4.0.2
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/.secrets.baseline +20 -30
- package/CHANGELOG.md +16 -4
- package/MIGRATION-V4.md +54 -0
- package/auth/authenticators/authenticator-interface.d.ts +3 -4
- package/auth/authenticators/authenticator-interface.js +1 -1
- package/auth/authenticators/authenticator.d.ts +5 -9
- package/auth/authenticators/authenticator.js +4 -8
- package/auth/authenticators/basic-authenticator.d.ts +12 -12
- package/auth/authenticators/basic-authenticator.js +12 -12
- package/auth/authenticators/bearer-token-authenticator.d.ts +11 -14
- package/auth/authenticators/bearer-token-authenticator.js +11 -14
- package/auth/authenticators/cloud-pak-for-data-authenticator.d.ts +15 -15
- package/auth/authenticators/cloud-pak-for-data-authenticator.js +15 -15
- package/auth/authenticators/container-authenticator.d.ts +23 -23
- package/auth/authenticators/container-authenticator.js +23 -23
- package/auth/authenticators/iam-authenticator.d.ts +20 -20
- package/auth/authenticators/iam-authenticator.js +20 -20
- package/auth/authenticators/iam-request-based-authenticator.d.ts +23 -25
- package/auth/authenticators/iam-request-based-authenticator.js +23 -25
- package/auth/authenticators/token-request-based-authenticator.d.ts +19 -24
- package/auth/authenticators/token-request-based-authenticator.js +19 -24
- package/auth/authenticators/vpc-instance-authenticator.d.ts +17 -16
- package/auth/authenticators/vpc-instance-authenticator.js +17 -16
- package/auth/token-managers/container-token-manager.d.ts +23 -25
- package/auth/token-managers/container-token-manager.js +23 -25
- package/auth/token-managers/cp4d-token-manager.d.ts +13 -13
- package/auth/token-managers/cp4d-token-manager.js +13 -13
- package/auth/token-managers/iam-request-based-token-manager.d.ts +26 -31
- package/auth/token-managers/iam-request-based-token-manager.js +26 -31
- package/auth/token-managers/iam-token-manager.d.ts +17 -16
- package/auth/token-managers/iam-token-manager.js +17 -16
- package/auth/token-managers/jwt-token-manager.d.ts +10 -13
- package/auth/token-managers/jwt-token-manager.js +13 -16
- package/auth/token-managers/token-manager.d.ts +23 -35
- package/auth/token-managers/token-manager.js +22 -34
- package/auth/token-managers/vpc-instance-token-manager.d.ts +15 -15
- package/auth/token-managers/vpc-instance-token-manager.js +15 -15
- package/auth/utils/get-authenticator-from-environment.d.ts +2 -2
- package/auth/utils/get-authenticator-from-environment.js +2 -2
- package/auth/utils/helpers.d.ts +34 -32
- package/auth/utils/helpers.js +34 -32
- package/auth/utils/read-external-sources.d.ts +2 -1
- package/auth/utils/read-external-sources.js +5 -4
- package/build/docs/ibm-cloud-sdk-core.atleastone.md +4 -4
- package/build/docs/ibm-cloud-sdk-core.atmostone.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.authenticator._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticate.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.authenticationtype.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticator.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.authenticatorinterface.authenticate.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice._constructor_.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.configureservice.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.createrequest.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.baseservice.enableretries.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.getauthenticator.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.baseservice.setdefaultheaders.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.baseservice.setserviceurl.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator._constructor_.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.authenticate.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.basicauthenticator.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator._constructor_.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.authenticate.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.bearertokenauthenticator.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.buildrequestfileobject.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.checkcredentials.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator._constructor_.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.cloudpakfordataauthenticator.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.computebasicauthheader.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.constructserviceurl.md +4 -4
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator._constructor_.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.md +4 -4
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setcrtokenfilename.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofileid.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.containerauthenticator.setiamprofilename.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager._constructor_.md +6 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.requesttoken.md +0 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setcrtokenfilename.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofileid.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.containertokenmanager.setiamprofilename.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager._constructor_.md +6 -2
- package/build/docs/ibm-cloud-sdk-core.cp4dtokenmanager.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.fileobject.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.fileoptions.md +4 -4
- package/build/docs/ibm-cloud-sdk-core.filestream.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.filewithmetadata.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.getauthenticatorfromenvironment.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.getcontenttype.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.getcurrenttime.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.getformat.md +0 -2
- package/build/docs/ibm-cloud-sdk-core.getmissingparams.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.getnewlogger.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.getqueryparam.md +1 -5
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator._constructor_.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.iamauthenticator.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator._constructor_.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.getrefreshtoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.md +7 -7
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager._constructor_.md +6 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.getrefreshtoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md +8 -8
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.requesttoken.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.savetokeninfo.md +1 -3
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md +3 -5
- package/build/docs/ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setscope.md +2 -4
- package/build/docs/ibm-cloud-sdk-core.iamrequestoptions.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager._constructor_.md +6 -2
- package/build/docs/ibm-cloud-sdk-core.iamtokenmanager.md +3 -3
- package/build/docs/ibm-cloud-sdk-core.ishtml.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager._constructor_.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.md +5 -5
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.requesttoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.jwttokenmanager.savetokeninfo.md +1 -3
- package/build/docs/ibm-cloud-sdk-core.md +24 -24
- package/build/docs/ibm-cloud-sdk-core.onlyone.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.qs.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.readexternalsources.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.removesuffix.md +4 -4
- package/build/docs/ibm-cloud-sdk-core.sdklogger.md +7 -7
- package/build/docs/ibm-cloud-sdk-core.streamtopromise.md +3 -1
- package/build/docs/ibm-cloud-sdk-core.striptrailingslash.md +4 -2
- package/build/docs/ibm-cloud-sdk-core.tokenmanager._constructor_.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.gettoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.md +15 -15
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.requesttoken.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md +1 -3
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md +1 -3
- package/build/docs/ibm-cloud-sdk-core.tokenmanager.setheaders.md +2 -4
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.md +9 -9
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.tolowerkeys.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkforsuccessfulexecution.md +0 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkmediaheaders.md +0 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkurlandmethod.md +1 -3
- package/build/docs/ibm-cloud-sdk-core.unittestutils.checkuserheader.md +0 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.expecttobepromise.md +0 -2
- package/build/docs/ibm-cloud-sdk-core.unittestutils.getoptions.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.useroptions.md +9 -9
- package/build/docs/ibm-cloud-sdk-core.validateinput.md +8 -2
- package/build/docs/ibm-cloud-sdk-core.validateparams.md +1 -1
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md +6 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.md +6 -6
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md +6 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.md +4 -4
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md +2 -2
- package/build/docs/ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md +2 -2
- package/docs/ibm-cloud-sdk-core.api.json +516 -241
- package/es/auth/authenticators/authenticator-interface.d.ts +3 -4
- package/es/auth/authenticators/authenticator-interface.js +1 -1
- package/es/auth/authenticators/authenticator.d.ts +5 -9
- package/es/auth/authenticators/authenticator.js +4 -8
- package/es/auth/authenticators/basic-authenticator.d.ts +12 -12
- package/es/auth/authenticators/basic-authenticator.js +12 -12
- package/es/auth/authenticators/bearer-token-authenticator.d.ts +11 -14
- package/es/auth/authenticators/bearer-token-authenticator.js +11 -14
- package/es/auth/authenticators/cloud-pak-for-data-authenticator.d.ts +15 -15
- package/es/auth/authenticators/cloud-pak-for-data-authenticator.js +15 -15
- package/es/auth/authenticators/container-authenticator.d.ts +23 -23
- package/es/auth/authenticators/container-authenticator.js +23 -23
- package/es/auth/authenticators/iam-authenticator.d.ts +20 -20
- package/es/auth/authenticators/iam-authenticator.js +20 -20
- package/es/auth/authenticators/iam-request-based-authenticator.d.ts +23 -25
- package/es/auth/authenticators/iam-request-based-authenticator.js +23 -25
- package/es/auth/authenticators/token-request-based-authenticator.d.ts +19 -24
- package/es/auth/authenticators/token-request-based-authenticator.js +19 -24
- package/es/auth/authenticators/vpc-instance-authenticator.d.ts +17 -16
- package/es/auth/authenticators/vpc-instance-authenticator.js +17 -16
- package/es/auth/token-managers/container-token-manager.d.ts +23 -25
- package/es/auth/token-managers/container-token-manager.js +23 -25
- package/es/auth/token-managers/cp4d-token-manager.d.ts +13 -13
- package/es/auth/token-managers/cp4d-token-manager.js +13 -13
- package/es/auth/token-managers/iam-request-based-token-manager.d.ts +26 -31
- package/es/auth/token-managers/iam-request-based-token-manager.js +26 -31
- package/es/auth/token-managers/iam-token-manager.d.ts +17 -16
- package/es/auth/token-managers/iam-token-manager.js +17 -16
- package/es/auth/token-managers/jwt-token-manager.d.ts +10 -13
- package/es/auth/token-managers/jwt-token-manager.js +13 -16
- package/es/auth/token-managers/token-manager.d.ts +23 -35
- package/es/auth/token-managers/token-manager.js +22 -34
- package/es/auth/token-managers/vpc-instance-token-manager.d.ts +15 -15
- package/es/auth/token-managers/vpc-instance-token-manager.js +15 -15
- package/es/auth/utils/get-authenticator-from-environment.d.ts +2 -2
- package/es/auth/utils/get-authenticator-from-environment.js +2 -2
- package/es/auth/utils/helpers.d.ts +34 -32
- package/es/auth/utils/helpers.js +34 -32
- package/es/auth/utils/read-external-sources.d.ts +2 -1
- package/es/auth/utils/read-external-sources.js +5 -4
- package/es/lib/base-service.d.ts +31 -32
- package/es/lib/base-service.js +31 -32
- package/es/lib/content-type.js +5 -5
- package/es/lib/get-new-logger.d.ts +2 -2
- package/es/lib/get-new-logger.js +2 -2
- package/es/lib/helper.d.ts +24 -31
- package/es/lib/helper.js +25 -32
- package/es/lib/querystring.d.ts +1 -1
- package/es/lib/querystring.js +3 -3
- package/es/lib/request-wrapper.d.ts +4 -6
- package/es/lib/request-wrapper.js +17 -23
- package/es/lib/sdk-test-helpers.d.ts +14 -19
- package/es/lib/sdk-test-helpers.js +14 -19
- package/es/lib/stream-to-promise.d.ts +3 -3
- package/es/lib/stream-to-promise.js +3 -3
- package/es/tsdoc-metadata.json +1 -1
- package/etc/ibm-cloud-sdk-core.api.md +12 -12
- package/ibm-cloud-sdk-core.d.ts +1402 -1449
- package/lib/base-service.d.ts +31 -32
- package/lib/base-service.js +31 -32
- package/lib/content-type.js +5 -5
- package/lib/get-new-logger.d.ts +2 -2
- package/lib/get-new-logger.js +2 -2
- package/lib/helper.d.ts +24 -31
- package/lib/helper.js +25 -32
- package/lib/querystring.d.ts +1 -1
- package/lib/querystring.js +3 -3
- package/lib/request-wrapper.d.ts +4 -6
- package/lib/request-wrapper.js +17 -23
- package/lib/sdk-test-helpers.d.ts +14 -19
- package/lib/sdk-test-helpers.js +14 -19
- package/lib/stream-to-promise.d.ts +3 -3
- package/lib/stream-to-promise.js +3 -3
- package/package.json +2 -2
- package/temp/ibm-cloud-sdk-core.api.json +516 -241
- package/temp/ibm-cloud-sdk-core.api.md +12 -12
- package/MIGRATION-V1.md +0 -42
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## TokenManager.(constructor)
|
|
6
6
|
|
|
7
|
-
Create a new
|
|
7
|
+
Create a new TokenManager instance.
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -16,5 +16,5 @@ constructor(options: TokenManagerOptions);
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| options | [TokenManagerOptions](./ibm-cloud-sdk-core.tokenmanageroptions.md) | Configuration options. |
|
|
19
|
+
| options | [TokenManagerOptions](./ibm-cloud-sdk-core.tokenmanageroptions.md) | Configuration options. This should be an object containing these fields: - url: (optional) the endpoint URL for the token service - disableSslVerification: (optional) a flag that indicates whether verification of the token server's SSL certificate should be disabled or not - headers: (optional) a set of HTTP headers to be sent with each request to the token service |
|
|
20
20
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## TokenManager.getToken() method
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Retrieves a new token using "requestToken()" if there is not a currently stored token from a previous call, or the previous token has expired.
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## TokenManager class
|
|
6
6
|
|
|
7
|
-
A class for shared functionality for storing, and requesting tokens. Intended to be used as a parent to be extended for token request management. Child classes should implement
|
|
7
|
+
A class for shared functionality for storing, and requesting tokens. Intended to be used as a parent to be extended for token request management. Child classes should implement "requestToken()" to retrieve the token from intended sources and "saveTokenInfo(tokenResponse)" to parse and save token information from the response.
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -16,28 +16,28 @@ export declare class TokenManager
|
|
|
16
16
|
|
|
17
17
|
| Constructor | Modifiers | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| [(constructor)(options)](./ibm-cloud-sdk-core.tokenmanager._constructor_.md) | | Create a new
|
|
19
|
+
| [(constructor)(options)](./ibm-cloud-sdk-core.tokenmanager._constructor_.md) | | Create a new TokenManager instance. |
|
|
20
20
|
|
|
21
21
|
## Properties
|
|
22
22
|
|
|
23
23
|
| Property | Modifiers | Type | Description |
|
|
24
24
|
| --- | --- | --- | --- |
|
|
25
|
-
| [accessToken](./ibm-cloud-sdk-core.tokenmanager.accesstoken.md) |
|
|
26
|
-
| [disableSslVerification](./ibm-cloud-sdk-core.tokenmanager.disablesslverification.md) |
|
|
27
|
-
| [expireTime](./ibm-cloud-sdk-core.tokenmanager.expiretime.md) |
|
|
28
|
-
| [headers](./ibm-cloud-sdk-core.tokenmanager.headers.md) |
|
|
29
|
-
| [refreshTime](./ibm-cloud-sdk-core.tokenmanager.refreshtime.md) |
|
|
30
|
-
| [requestWrapperInstance](./ibm-cloud-sdk-core.tokenmanager.requestwrapperinstance.md) |
|
|
31
|
-
| [url](./ibm-cloud-sdk-core.tokenmanager.url.md) |
|
|
25
|
+
| [accessToken](./ibm-cloud-sdk-core.tokenmanager.accesstoken.md) | <code>protected</code> | string | |
|
|
26
|
+
| [disableSslVerification](./ibm-cloud-sdk-core.tokenmanager.disablesslverification.md) | <code>protected</code> | boolean | |
|
|
27
|
+
| [expireTime](./ibm-cloud-sdk-core.tokenmanager.expiretime.md) | <code>protected</code> | number | |
|
|
28
|
+
| [headers](./ibm-cloud-sdk-core.tokenmanager.headers.md) | <code>protected</code> | OutgoingHttpHeaders | |
|
|
29
|
+
| [refreshTime](./ibm-cloud-sdk-core.tokenmanager.refreshtime.md) | <code>protected</code> | number | |
|
|
30
|
+
| [requestWrapperInstance](./ibm-cloud-sdk-core.tokenmanager.requestwrapperinstance.md) | <code>protected</code> | RequestWrapper | |
|
|
31
|
+
| [url](./ibm-cloud-sdk-core.tokenmanager.url.md) | <code>protected</code> | string | |
|
|
32
32
|
|
|
33
33
|
## Methods
|
|
34
34
|
|
|
35
35
|
| Method | Modifiers | Description |
|
|
36
36
|
| --- | --- | --- |
|
|
37
|
-
| [getToken()](./ibm-cloud-sdk-core.tokenmanager.gettoken.md) | |
|
|
38
|
-
| [pacedRequestToken()](./ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md) |
|
|
39
|
-
| [requestToken()](./ibm-cloud-sdk-core.tokenmanager.requesttoken.md) |
|
|
40
|
-
| [saveTokenInfo(tokenResponse)](./ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md) |
|
|
41
|
-
| [setDisableSslVerification(value)](./ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md) | |
|
|
42
|
-
| [setHeaders(headers)](./ibm-cloud-sdk-core.tokenmanager.setheaders.md) | |
|
|
37
|
+
| [getToken()](./ibm-cloud-sdk-core.tokenmanager.gettoken.md) | | Retrieves a new token using "requestToken()" if there is not a currently stored token from a previous call, or the previous token has expired. |
|
|
38
|
+
| [pacedRequestToken()](./ibm-cloud-sdk-core.tokenmanager.pacedrequesttoken.md) | <code>protected</code> | <p>Paces requests to requestToken().</p><p>This method pseudo-serializes requests for an access\_token when the current token is undefined or expired. The first caller to this method records its <code>requestTime</code> and then issues the token request. Subsequent callers will check the <code>requestTime</code> to see if a request is active (has been issued within the past 60 seconds), and if so will queue their promise for the active requestor to resolve when that request completes.</p> |
|
|
39
|
+
| [requestToken()](./ibm-cloud-sdk-core.tokenmanager.requesttoken.md) | <code>protected</code> | Request a token using an API endpoint. |
|
|
40
|
+
| [saveTokenInfo(tokenResponse)](./ibm-cloud-sdk-core.tokenmanager.savetokeninfo.md) | <code>protected</code> | Parse and save token information from the response. Save the requested token into field <code>accessToken</code>. Calculate expiration and refresh time from the received info and store them in fields <code>expireTime</code> and <code>refreshTime</code>. |
|
|
41
|
+
| [setDisableSslVerification(value)](./ibm-cloud-sdk-core.tokenmanager.setdisablesslverification.md) | | Sets the "disableSslVerification" property. |
|
|
42
|
+
| [setHeaders(headers)](./ibm-cloud-sdk-core.tokenmanager.setheaders.md) | | Sets the headers to be included with each outbound request to the token server. |
|
|
43
43
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## TokenManager.pacedRequestToken() method
|
|
6
6
|
|
|
7
|
-
Paces requests to
|
|
7
|
+
Paces requests to requestToken().
|
|
8
8
|
|
|
9
9
|
This method pseudo-serializes requests for an access\_token when the current token is undefined or expired. The first caller to this method records its `requestTime` and then issues the token request. Subsequent callers will check the `requestTime` to see if a request is active (has been issued within the past 60 seconds), and if so will queue their promise for the active requestor to resolve when that request completes.
|
|
10
10
|
|
|
@@ -16,11 +16,9 @@ protected saveTokenInfo(tokenResponse: any): void;
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| tokenResponse | any |
|
|
19
|
+
| tokenResponse | any | the response object from a token service request |
|
|
20
20
|
|
|
21
21
|
<b>Returns:</b>
|
|
22
22
|
|
|
23
23
|
void
|
|
24
24
|
|
|
25
|
-
{<!-- -->void<!-- -->}
|
|
26
|
-
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## TokenManager.setDisableSslVerification() method
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Sets the "disableSslVerification" property.
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -22,5 +22,3 @@ setDisableSslVerification(value: boolean): void;
|
|
|
22
22
|
|
|
23
23
|
void
|
|
24
24
|
|
|
25
|
-
{<!-- -->void<!-- -->}
|
|
26
|
-
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## TokenManager.setHeaders() method
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Sets the headers to be included with each outbound request to the token server.
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -16,11 +16,9 @@ setHeaders(headers: OutgoingHttpHeaders): void;
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| headers | OutgoingHttpHeaders | the
|
|
19
|
+
| headers | OutgoingHttpHeaders | the set of headers to send with each request to the token server |
|
|
20
20
|
|
|
21
21
|
<b>Returns:</b>
|
|
22
22
|
|
|
23
23
|
void
|
|
24
24
|
|
|
25
|
-
{<!-- -->void<!-- -->}
|
|
26
|
-
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## TokenRequestBasedAuthenticator.(constructor)
|
|
6
6
|
|
|
7
|
-
Create a new
|
|
7
|
+
Create a new TokenRequestBasedAuthenticator instance with an internal JwtTokenManager.
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -16,5 +16,5 @@ constructor(options: BaseOptions);
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| options | BaseOptions | Configuration options. |
|
|
19
|
+
| options | BaseOptions | Configuration options. This should be an object containing these fields: - url: (optional) the endpoint URL for the token service - disableSslVerification: (optional) a flag that indicates whether verification of the token server's SSL certificate should be disabled or not - headers: (optional) a set of HTTP headers to be sent with each request to the token service |
|
|
20
20
|
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
## TokenRequestBasedAuthenticator.authenticate() method
|
|
6
6
|
|
|
7
|
-
Adds bearer token information to
|
|
7
|
+
Adds bearer token information to "requestOptions". The bearer token information will be set in the Authorization property of "requestOptions.headers" in the form:
|
|
8
8
|
|
|
9
|
-
Authorization: Bearer
|
|
9
|
+
Authorization: Bearer <<!-- -->bearer-token<!-- -->>
|
|
10
10
|
|
|
11
11
|
<b>Signature:</b>
|
|
12
12
|
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
## TokenRequestBasedAuthenticator class
|
|
6
6
|
|
|
7
|
-
Class for common functionality shared by token-request authenticators.
|
|
7
|
+
Class for common functionality shared by token-request authenticators. TokenRequestBasedAuthenticators use token managers to retrieve, store, and refresh tokens. Not intended to be used as stand-alone authenticator, but as base class to authenticators that have their own token manager implementations.
|
|
8
8
|
|
|
9
|
-
The
|
|
9
|
+
The token will be added as an Authorization header in the form:
|
|
10
10
|
|
|
11
|
-
Authorization: Bearer
|
|
11
|
+
Authorization: Bearer <<!-- -->bearer-token<!-- -->>
|
|
12
12
|
|
|
13
13
|
<b>Signature:</b>
|
|
14
14
|
|
|
@@ -21,22 +21,22 @@ export declare class TokenRequestBasedAuthenticator extends Authenticator
|
|
|
21
21
|
|
|
22
22
|
| Constructor | Modifiers | Description |
|
|
23
23
|
| --- | --- | --- |
|
|
24
|
-
| [(constructor)(options)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md) | | Create a new
|
|
24
|
+
| [(constructor)(options)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator._constructor_.md) | | Create a new TokenRequestBasedAuthenticator instance with an internal JwtTokenManager. |
|
|
25
25
|
|
|
26
26
|
## Properties
|
|
27
27
|
|
|
28
28
|
| Property | Modifiers | Type | Description |
|
|
29
29
|
| --- | --- | --- | --- |
|
|
30
|
-
| [disableSslVerification](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.disablesslverification.md) |
|
|
31
|
-
| [headers](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.headers.md) |
|
|
32
|
-
| [tokenManager](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.tokenmanager.md) |
|
|
33
|
-
| [url](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.url.md) |
|
|
30
|
+
| [disableSslVerification](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.disablesslverification.md) | <code>protected</code> | boolean | |
|
|
31
|
+
| [headers](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.headers.md) | <code>protected</code> | OutgoingHttpHeaders | |
|
|
32
|
+
| [tokenManager](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.tokenmanager.md) | <code>protected</code> | [JwtTokenManager](./ibm-cloud-sdk-core.jwttokenmanager.md) | |
|
|
33
|
+
| [url](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.url.md) | <code>protected</code> | string | |
|
|
34
34
|
|
|
35
35
|
## Methods
|
|
36
36
|
|
|
37
37
|
| Method | Modifiers | Description |
|
|
38
38
|
| --- | --- | --- |
|
|
39
|
-
| [authenticate(requestOptions)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md) | | Adds bearer token information to
|
|
39
|
+
| [authenticate(requestOptions)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.authenticate.md) | | <p>Adds bearer token information to "requestOptions". The bearer token information will be set in the Authorization property of "requestOptions.headers" in the form:</p><p>Authorization: Bearer <<!-- -->bearer-token<!-- -->></p> |
|
|
40
40
|
| [setDisableSslVerification(value)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md) | | Set the flag that indicates whether verification of the server's SSL certificate should be disabled or not. |
|
|
41
41
|
| [setHeaders(headers)](./ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setheaders.md) | | Set headers. |
|
|
42
42
|
|
package/build/docs/ibm-cloud-sdk-core.tokenrequestbasedauthenticator.setdisablesslverification.md
CHANGED
|
@@ -16,7 +16,7 @@ setDisableSslVerification(value: boolean): void;
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| value | boolean |
|
|
19
|
+
| value | boolean | a flag that indicates whether verification of the token server's SSL certificate should be disabled or not. |
|
|
20
20
|
|
|
21
21
|
<b>Returns:</b>
|
|
22
22
|
|
|
@@ -16,7 +16,7 @@ setHeaders(headers: OutgoingHttpHeaders): void;
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| headers | OutgoingHttpHeaders |
|
|
19
|
+
| headers | OutgoingHttpHeaders | a set of HTTP headers to be sent with each outbound token server request. Overwrites previous default headers. |
|
|
20
20
|
|
|
21
21
|
<b>Returns:</b>
|
|
22
22
|
|
|
@@ -18,11 +18,9 @@ export declare function checkUrlAndMethod(options: any, url: string, method: any
|
|
|
18
18
|
| --- | --- | --- |
|
|
19
19
|
| options | any | the options object put together by the SDK, retrieved from the createRequest mock |
|
|
20
20
|
| url | string | The URL path of the service endpoint, from the paths section of the API definition |
|
|
21
|
-
| method | any |
|
|
21
|
+
| method | any | The HTTP method for the request, from the API definition |
|
|
22
22
|
|
|
23
23
|
<b>Returns:</b>
|
|
24
24
|
|
|
25
25
|
void
|
|
26
26
|
|
|
27
|
-
{<!-- -->void<!-- -->}
|
|
28
|
-
|
|
@@ -14,13 +14,13 @@ export interface UserOptions
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
| Property | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| [authenticator?](./ibm-cloud-sdk-core.useroptions.authenticator.md) | [AuthenticatorInterface](./ibm-cloud-sdk-core.authenticatorinterface.md) | <i>(Optional)</i> The Authenticator object used to authenticate requests to the service |
|
|
20
|
-
| [disableSslVerification?](./ibm-cloud-sdk-core.useroptions.disablesslverification.md) | boolean | <i>(Optional)</i> Set to <code>true</code> to allow unauthorized requests - not recommended for production use. |
|
|
21
|
-
| [headers?](./ibm-cloud-sdk-core.useroptions.headers.md) | OutgoingHttpHeaders | <i>(Optional)</i> Default headers that shall be included with every request to the service. |
|
|
22
|
-
| [jar?](./ibm-cloud-sdk-core.useroptions.jar.md) | CookieJar \| boolean | <i>(Optional)</i> Set your own cookie jar object |
|
|
23
|
-
| [serviceUrl?](./ibm-cloud-sdk-core.useroptions.serviceurl.md) | string | <i>(Optional)</i> The base url to use when contacting the service. The base url may differ between IBM Cloud regions. |
|
|
24
|
-
| [url?](./ibm-cloud-sdk-core.useroptions.url.md) | string | <i>(Optional)</i> Deprecated. Use <code>serviceUrl</code> instead. |
|
|
25
|
-
| [version?](./ibm-cloud-sdk-core.useroptions.version.md) | string | <i>(Optional)</i> The API version date to use with the service, in "YYYY-MM-DD" format. |
|
|
17
|
+
| Property | Modifiers | Type | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| [authenticator?](./ibm-cloud-sdk-core.useroptions.authenticator.md) | | [AuthenticatorInterface](./ibm-cloud-sdk-core.authenticatorinterface.md) | <i>(Optional)</i> The Authenticator object used to authenticate requests to the service |
|
|
20
|
+
| [disableSslVerification?](./ibm-cloud-sdk-core.useroptions.disablesslverification.md) | | boolean | <i>(Optional)</i> Set to <code>true</code> to allow unauthorized requests - not recommended for production use. |
|
|
21
|
+
| [headers?](./ibm-cloud-sdk-core.useroptions.headers.md) | | OutgoingHttpHeaders | <i>(Optional)</i> Default headers that shall be included with every request to the service. |
|
|
22
|
+
| [jar?](./ibm-cloud-sdk-core.useroptions.jar.md) | | CookieJar \| boolean | <i>(Optional)</i> Set your own cookie jar object |
|
|
23
|
+
| [serviceUrl?](./ibm-cloud-sdk-core.useroptions.serviceurl.md) | | string | <i>(Optional)</i> The base url to use when contacting the service. The base url may differ between IBM Cloud regions. |
|
|
24
|
+
| [url?](./ibm-cloud-sdk-core.useroptions.url.md) | | string | <i>(Optional)</i> Deprecated. Use <code>serviceUrl</code> instead. |
|
|
25
|
+
| [version?](./ibm-cloud-sdk-core.useroptions.version.md) | | string | <i>(Optional)</i> The API version date to use with the service, in "YYYY-MM-DD" format. |
|
|
26
26
|
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
## validateInput() function
|
|
6
6
|
|
|
7
|
+
Validates "options".
|
|
8
|
+
|
|
7
9
|
<b>Signature:</b>
|
|
8
10
|
|
|
9
11
|
```typescript
|
|
@@ -14,10 +16,14 @@ export declare function validateInput(options: any, requiredOptions: string[]):
|
|
|
14
16
|
|
|
15
17
|
| Parameter | Type | Description |
|
|
16
18
|
| --- | --- | --- |
|
|
17
|
-
| options | any |
|
|
18
|
-
| requiredOptions | string\[\] |
|
|
19
|
+
| options | any | a configuration options object |
|
|
20
|
+
| requiredOptions | string\[\] | the list of properties that must be present in "options" |
|
|
19
21
|
|
|
20
22
|
<b>Returns:</b>
|
|
21
23
|
|
|
22
24
|
void
|
|
23
25
|
|
|
26
|
+
## Exceptions
|
|
27
|
+
|
|
28
|
+
Error: "options" failed validation
|
|
29
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## VpcInstanceAuthenticator.(constructor)
|
|
6
6
|
|
|
7
|
-
Create a new
|
|
7
|
+
Create a new VpcInstanceAuthenticator instance.
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -16,5 +16,9 @@ constructor(options: Options);
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| options | Options | Configuration options for VpcInstance authentication. |
|
|
19
|
+
| options | Options | Configuration options for VpcInstance authentication. This should be an object containing these fields: - url: (optional) the endpoint URL for the VPC Instance Metadata Service (default value: "http://169.254.169.254") - iamProfileCrn: (optional) the CRN of the linked IAM trusted profile to be used to obtain the IAM access token - iamProfileId: (optional) the ID of the linked IAM trusted profile to be used to obtain the IAM access token |
|
|
20
|
+
|
|
21
|
+
## Remarks
|
|
22
|
+
|
|
23
|
+
At most one of "iamProfileCrn" or "iamProfileId" may be specified. If neither one is specified, then the default IAM profile defined for the compute resource will be used.
|
|
20
24
|
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
## VpcInstanceAuthenticator class
|
|
6
6
|
|
|
7
|
-
The
|
|
7
|
+
The VpcInstanceAuthenticator implements an authentication scheme in which it retrieves an "instance identity token" and exchanges that for an IAM access token using the VPC Instance Metadata Service API which is available on the local compute resource (VM). The instance identity token is similar to an IAM apikey, except that it is managed automatically by the compute resource provider (VPC).
|
|
8
8
|
|
|
9
9
|
The resulting IAM access token is then added to outbound requests in an Authorization header
|
|
10
10
|
|
|
11
|
-
Authorization: Bearer
|
|
11
|
+
Authorization: Bearer <<!-- -->access-token<!-- -->>
|
|
12
12
|
|
|
13
13
|
<b>Signature:</b>
|
|
14
14
|
|
|
@@ -21,19 +21,19 @@ export declare class VpcInstanceAuthenticator extends TokenRequestBasedAuthentic
|
|
|
21
21
|
|
|
22
22
|
| Constructor | Modifiers | Description |
|
|
23
23
|
| --- | --- | --- |
|
|
24
|
-
| [(constructor)(options)](./ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md) | | Create a new
|
|
24
|
+
| [(constructor)(options)](./ibm-cloud-sdk-core.vpcinstanceauthenticator._constructor_.md) | | Create a new VpcInstanceAuthenticator instance. |
|
|
25
25
|
|
|
26
26
|
## Properties
|
|
27
27
|
|
|
28
28
|
| Property | Modifiers | Type | Description |
|
|
29
29
|
| --- | --- | --- | --- |
|
|
30
|
-
| [tokenManager](./ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md) |
|
|
30
|
+
| [tokenManager](./ibm-cloud-sdk-core.vpcinstanceauthenticator.tokenmanager.md) | <code>protected</code> | [VpcInstanceTokenManager](./ibm-cloud-sdk-core.vpcinstancetokenmanager.md) | |
|
|
31
31
|
|
|
32
32
|
## Methods
|
|
33
33
|
|
|
34
34
|
| Method | Modifiers | Description |
|
|
35
35
|
| --- | --- | --- |
|
|
36
36
|
| [authenticationType()](./ibm-cloud-sdk-core.vpcinstanceauthenticator.authenticationtype.md) | | Returns the authenticator's type ('vpc'). |
|
|
37
|
-
| [setIamProfileCrn(iamProfileCrn)](./ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md) | |
|
|
38
|
-
| [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md) | |
|
|
37
|
+
| [setIamProfileCrn(iamProfileCrn)](./ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofilecrn.md) | | Sets the "iamProfileCrn" value to be used when obtaining an IAM access token |
|
|
38
|
+
| [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.vpcinstanceauthenticator.setiamprofileid.md) | | Sets the "iamProfileId" value to be used when obtaining an IAM access token |
|
|
39
39
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## VpcInstanceAuthenticator.setIamProfileCrn() method
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Sets the "iamProfileCrn" value to be used when obtaining an IAM access token
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ setIamProfileCrn(iamProfileCrn: string): void;
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| iamProfileCrn | string |
|
|
19
|
+
| iamProfileCrn | string | the CRN of the linked IAM trusted profile to use when obtaining an IAM access token |
|
|
20
20
|
|
|
21
21
|
<b>Returns:</b>
|
|
22
22
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## VpcInstanceAuthenticator.setIamProfileId() method
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Sets the "iamProfileId" value to be used when obtaining an IAM access token
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ setIamProfileId(iamProfileId: string): void;
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| iamProfileId | string |
|
|
19
|
+
| iamProfileId | string | the ID of the linked IAM trusted profile to use when obtaining an IAM access token |
|
|
20
20
|
|
|
21
21
|
<b>Returns:</b>
|
|
22
22
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## VpcInstanceTokenManager.(constructor)
|
|
6
6
|
|
|
7
|
-
Create a new
|
|
7
|
+
Create a new VpcInstanceTokenManager instance.
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -16,5 +16,9 @@ constructor(options: Options);
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| options | Options | Configuration options. |
|
|
19
|
+
| options | Options | Configuration options. This should be an object containing these fields: - url: (optional) the endpoint URL for the VPC Instance Metadata Service (default value: "http://169.254.169.254") - iamProfileCrn: (optional) the CRN of the linked IAM trusted profile to be used to obtain the IAM access token - iamProfileId: (optional) the ID of the linked IAM trusted profile to be used to obtain the IAM access token |
|
|
20
|
+
|
|
21
|
+
## Remarks
|
|
22
|
+
|
|
23
|
+
At most one of "iamProfileCrn" or "iamProfileId" may be specified. If neither one is specified, then the default IAM profile defined for the compute resource will be used.
|
|
20
24
|
|
|
@@ -17,13 +17,13 @@ export declare class VpcInstanceTokenManager extends JwtTokenManager
|
|
|
17
17
|
|
|
18
18
|
| Constructor | Modifiers | Description |
|
|
19
19
|
| --- | --- | --- |
|
|
20
|
-
| [(constructor)(options)](./ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md) | | Create a new
|
|
20
|
+
| [(constructor)(options)](./ibm-cloud-sdk-core.vpcinstancetokenmanager._constructor_.md) | | Create a new VpcInstanceTokenManager instance. |
|
|
21
21
|
|
|
22
22
|
## Methods
|
|
23
23
|
|
|
24
24
|
| Method | Modifiers | Description |
|
|
25
25
|
| --- | --- | --- |
|
|
26
|
-
| [requestToken()](./ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md) |
|
|
27
|
-
| [setIamProfileCrn(iamProfileCrn)](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md) | |
|
|
28
|
-
| [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md) | |
|
|
26
|
+
| [requestToken()](./ibm-cloud-sdk-core.vpcinstancetokenmanager.requesttoken.md) | <code>protected</code> | |
|
|
27
|
+
| [setIamProfileCrn(iamProfileCrn)](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofilecrn.md) | | Sets the CRN of the IAM trusted profile to use when fetching the access token from the IAM token server. |
|
|
28
|
+
| [setIamProfileId(iamProfileId)](./ibm-cloud-sdk-core.vpcinstancetokenmanager.setiamprofileid.md) | | Sets the Id of the IAM trusted profile to use when fetching the access token from the IAM token server. |
|
|
29
29
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## VpcInstanceTokenManager.setIamProfileCrn() method
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Sets the CRN of the IAM trusted profile to use when fetching the access token from the IAM token server.
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ setIamProfileCrn(iamProfileCrn: string): void;
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| iamProfileCrn | string |
|
|
19
|
+
| iamProfileCrn | string | the CRN of the IAM trusted profile |
|
|
20
20
|
|
|
21
21
|
<b>Returns:</b>
|
|
22
22
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## VpcInstanceTokenManager.setIamProfileId() method
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Sets the Id of the IAM trusted profile to use when fetching the access token from the IAM token server.
|
|
8
8
|
|
|
9
9
|
<b>Signature:</b>
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ setIamProfileId(iamProfileId: string): void;
|
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| iamProfileId | string |
|
|
19
|
+
| iamProfileId | string | the ID of the IAM trusted profile |
|
|
20
20
|
|
|
21
21
|
<b>Returns:</b>
|
|
22
22
|
|