Skip to content

Commit

Permalink
docs: update readme and secrets baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
apaparazzi0329 committed Feb 26, 2024
1 parent 30d7009 commit 6d34fda
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 8 deletions.
62 changes: 54 additions & 8 deletions .secrets.baseline
Expand Up @@ -3,7 +3,7 @@
"files": "package-lock.json|^.secrets.baseline$",
"lines": null
},
"generated_at": "2022-08-16T19:52:06Z",
"generated_at": "2024-02-26T18:58:05Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand Down Expand Up @@ -78,11 +78,47 @@
],
"results": {
"README.md": [
{
"hashed_secret": "d4c3d66fd0c38547a3c7a4c6bdc29c36911bc030",
"is_secret": false,
"is_verified": false,
"line_number": 155,
"type": "Secret Keyword",
"verified_result": null
},
{
"hashed_secret": "32e8612d8ca77c7ea8374aa7918db8e5df9252ed",
"is_secret": false,
"is_verified": false,
"line_number": 651,
"line_number": 650,
"type": "Secret Keyword",
"verified_result": null
}
],
"assistant/v2.ts": [
{
"hashed_secret": "4b28f8a2cf2d8920de88932ead405e6bddb15da2",
"is_secret": false,
"is_verified": false,
"line_number": 3637,
"type": "Secret Keyword",
"verified_result": null
}
],
"discovery/v1.ts": [
{
"hashed_secret": "e8fc807ce6fbcda13f91c5b64850173873de0cdc",
"is_secret": false,
"is_verified": false,
"line_number": 5550,
"type": "Secret Keyword",
"verified_result": null
},
{
"hashed_secret": "fdee05598fdd57ff8e9ae29e92c25a04f2c52fa6",
"is_secret": false,
"is_verified": false,
"line_number": 5551,
"type": "Secret Keyword",
"verified_result": null
}
Expand Down Expand Up @@ -138,7 +174,7 @@
"hashed_secret": "1b214d8483f6b115656b6910c696e13e8881b66c",
"is_secret": false,
"is_verified": false,
"line_number": 674,
"line_number": 661,
"type": "Secret Keyword",
"verified_result": null
}
Expand All @@ -148,15 +184,15 @@
"hashed_secret": "789b49606c321c8cf228d17942608eff0ccc4171",
"is_secret": false,
"is_verified": false,
"line_number": 224,
"line_number": 221,
"type": "Secret Keyword",
"verified_result": null
},
{
"hashed_secret": "6c475a361bc57d2e4e2f82a93d79efd8abc1c58b",
"is_secret": false,
"is_verified": false,
"line_number": 257,
"line_number": 254,
"type": "Secret Keyword",
"verified_result": null
}
Expand Down Expand Up @@ -234,7 +270,17 @@
"hashed_secret": "b8473b86d4c2072ca9b08bd28e373e8253e865c4",
"is_secret": false,
"is_verified": false,
"line_number": 5973,
"line_number": 5971,
"type": "Secret Keyword",
"verified_result": null
}
],
"test/unit/discovery.v2.test.js": [
{
"hashed_secret": "b8473b86d4c2072ca9b08bd28e373e8253e865c4",
"is_secret": false,
"is_verified": false,
"line_number": 3471,
"type": "Secret Keyword",
"verified_result": null
}
Expand Down Expand Up @@ -264,13 +310,13 @@
"hashed_secret": "b8473b86d4c2072ca9b08bd28e373e8253e865c4",
"is_secret": false,
"is_verified": false,
"line_number": 435,
"line_number": 436,
"type": "Secret Keyword",
"verified_result": null
}
]
},
"version": "0.13.1+ibm.50.dss",
"version": "0.13.1+ibm.56.dss",
"word_list": {
"file": null,
"hash": null
Expand Down
18 changes: 18 additions & 0 deletions README.md
Expand Up @@ -141,6 +141,24 @@ To use IAM authentication, you must use an `IamAuthenticator` or a `BearerTokenA

To use the SDK in a Cloud Pak, use the `CloudPakForDataAuthenticator`. This will require a username, password, and URL.

##### MCSP

To use the SDK through a third party cloud provider (such as AWS), use the `MCSPAuthenticator`. This will require the base endpoint URL for the MCSP token service (e.g. https://iam.platform.saas.ibm.com) and an apikey.

```js
import AssistantV2 from 'ibm-watson/assistant/v2'
import { McspAuthenticator } from 'ibm-watson/auth';

# In the constructor, letting the SDK manage the token
const authenticator = new McspAuthenticator({
url: 'token_service_endpoint',
apikey: 'apikey',
})
const assistant = AssistantV2(version='2023-06-15',
authenticator=authenticator)
assistant.setServiceUrl('<url_as_per_region>')
```

### Cloud Authentication Prioritization

When uploading your application to IBM Cloud there is a certain priority Watson services will use when looking for proper credentials. The order is as follows:
Expand Down

0 comments on commit 6d34fda

Please sign in to comment.