ibm-cloud-sdk-core
Version:
Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.
70 lines (33 loc) • 1.13 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) > [IamRequestBasedAuthenticator](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.md) > [setClientIdAndSecret](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.setclientidandsecret.md)
## IamRequestBasedAuthenticator.setClientIdAndSecret() method
Setter for the mutually inclusive "clientId" and the "clientSecret" fields.
**Signature:**
```typescript
setClientIdAndSecret(clientId: string, clientSecret: string): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
clientId
</td><td>
string
</td><td>
the "clientId" value used to form a Basic Authorization header for IAM token requests
</td></tr>
<tr><td>
clientSecret
</td><td>
string
</td><td>
the "clientSecret" value used to form a Basic Authorization header for IAM token requests
</td></tr>
</tbody></table>
**Returns:**
void