<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) &gt; [IamRequestBasedAuthenticator](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.md) &gt; [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

