Skip to content

Commit 5f5c339

Browse files
docs: update readme and secrets baseline
1 parent 0ee980d commit 5f5c339

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.secrets.baseline

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "package-lock.json|credentials.json|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2023-03-09T15:38:18Z",
6+
"generated_at": "2024-02-26T19:16:17Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -70,7 +70,7 @@
7070
"hashed_secret": "939999726d2023fca902233e45790c08081dc91b",
7171
"is_secret": false,
7272
"is_verified": false,
73-
"line_number": 150,
73+
"line_number": 182,
7474
"type": "Hex High Entropy String",
7575
"verified_result": null
7676
}

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,19 @@ service.setServiceUrl("<service CP4D URL>");
238238

239239
Be sure to both disable SSL verification when authenticating and set the endpoint explicitly to the URL given in Cloud Pak for Data.
240240

241+
#### MCSP
242+
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.
243+
244+
```java
245+
// letting the SDK manage the token
246+
Authenticator authenticator = new MCSPAuthenticator.Builder()
247+
.apikey("apikey")
248+
.url("token_service_endpoint")
249+
.build();
250+
Assistant service = new Assistant("2023-06-15", authenticator);
251+
service.setServiceUrl("<url_as_per_region>");
252+
```
253+
241254
## Using the SDK
242255

243256
### Parsing responses

0 commit comments

Comments
 (0)