UNPKG

ibm-cloud-sdk-core

Version:

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

54 lines (26 loc) 921 B
<!-- 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; [setScope](./ibm-cloud-sdk-core.iamrequestbasedauthenticator.setscope.md) ## IamRequestBasedAuthenticator.setScope() method Setter for the "scope" parameter to use when fetching the bearer token from the IAM token server. **Signature:** ```typescript setScope(scope: string): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> scope </td><td> string </td><td> (optional) a space-separated string that specifies one or more scopes to be associated with IAM token requests </td></tr> </tbody></table> **Returns:** void