Skip to content

Commit 12b9986

Browse files
Update README (#244)
1 parent ccc14fc commit 12b9986

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,16 @@ To configure it, follow these steps:
149149

150150
3. Configure the service account key for authentication in the SDK by following one of the alternatives below:
151151
- using the configuration options: `config.WithServiceAccountKey` or `config.WithServiceAccountKeyPath`, `config.WithPrivateKey` or `config.WithPrivateKeyPath`
152-
- setting environment variables: `STACKIT_SERVICE_ACCOUNT_KEY_PATH`
152+
- setting the environment variable: `STACKIT_SERVICE_ACCOUNT_KEY_PATH`
153153
- setting `STACKIT_SERVICE_ACCOUNT_KEY_PATH` in the credentials file (see above)
154-
4. **If you have provided your own RSA key-pair**, you can set it the same way (it will take precedence over the private key included in the service account key, if present):
155-
- using the configuration options: `config.WithPrivateKey` or `config.WithPrivateKeyPath`
156-
- setting environment variables: `STACKIT_PRIVATE_KEY_PATH`
157-
- setting `STACKIT_PRIVATE_KEY_PATH` in the credentials file (see above)
158-
5. The SDK will search for the keys and, if valid, will use them to get access and refresh tokens which will be used to authenticate all the requests.
154+
155+
> **If you have provided your own RSA key-pair when creating the service account key**, you also need to configure the private key (takes precedence over the private key included in the service account key, if present):
156+
>
157+
> - using the configuration options: `config.WithPrivateKey` or `config.WithPrivateKeyPath`
158+
> - setting the environment variable: `STACKIT_PRIVATE_KEY_PATH`
159+
> - setting `STACKIT_PRIVATE_KEY_PATH` in the credentials file (see above)
160+
161+
4. The SDK will search for the keys and, if valid, will use them to get access and refresh tokens which will be used to authenticate all the requests.
159162

160163
### Token flow
161164

0 commit comments

Comments
 (0)