UNPKG

ibm-cloud-sdk-core

Version:

Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.

70 lines (33 loc) 1.16 kB
<!-- 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; [IamRequestBasedTokenManager](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.md) &gt; [setClientIdAndSecret](./ibm-cloud-sdk-core.iamrequestbasedtokenmanager.setclientidandsecret.md) ## IamRequestBasedTokenManager.setClientIdAndSecret() method Sets the IAM "clientId" and "clientSecret" values. These values are used to compute the Authorization header used when retrieving the IAM access token. If these values are not set, no Authorization header will be set on the request (it is not required). **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 client id. </td></tr> <tr><td> clientSecret </td><td> string </td><td> the client secret. </td></tr> </tbody></table> **Returns:** void