Skip to content

Commit 7492c13

Browse files
authored
Add credential usage warning
1 parent 5ebe58f commit 7492c13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,12 @@ instantiate it and provide your credentials:
6565
#### Username and API Key
6666
For using a Classic Infrastructure or IBM Cloud API key. When using the IBM Cloud Api key, your username is the literal string `apikey`, more information about that can be found on the SLDN [Authenticating to the SoftLayer API](https://sldn.softlayer.com/article/authenticating-softlayer-api/#cloud-api) article.
6767

68+
:warning: Make sure to avoid hard coding your username and API key when using the client! Always pull credentials from the environment, secure config, or other source.
69+
6870
```java
6971
import com.softlayer.api.*;
7072

71-
ApiClient client = new RestApiClient().withCredentials("my user", "my api key");
73+
ApiClient client = new RestApiClient().withCredentials(myUser, myApiKey);
7274
```
7375

7476
#### Access Token

0 commit comments

Comments
 (0)