Skip to content

Commit 2b333e3

Browse files
committed
apply feedback
Signed-off-by: Jorge Turrado <[email protected]>
1 parent 93f6a5b commit 2b333e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/authentication/authentication.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ func main() {
1414

1515
// When creating a new API client without providing any configuration, it will setup default authentication.
1616
// The SDK will search for a valid service account key or token in several locations.
17-
// It will first try to use the key flow, by looking into the variables STACKIT_SERVICE_ACCOUNT_KEY, STACKIT_SERVICE_ACCOUNT_KEY_PATH,
17+
// It will first try to use the workload identity federation flow by looking into the variables STACKIT_FEDERATED_TOKEN_FILE, STACKIT_SERVICE_ACCOUNT_EMAIL and their default values,
18+
// Then, it will try key flow, by looking into the variables STACKIT_SERVICE_ACCOUNT_KEY, STACKIT_SERVICE_ACCOUNT_KEY_PATH,
1819
// STACKIT_PRIVATE_KEY and STACKIT_PRIVATE_KEY_PATH. If the keys cannot be retrieved, it will check the credentials file located in STACKIT_CREDENTIALS_PATH, if specified, or in
1920
// $HOME/.stackit/credentials.json as a fallback. If the key are found and are valid, the KeyAuth flow is used.
2021
// If the key flow cannot be used, it will try to find a token in the STACKIT_SERVICE_ACCOUNT_TOKEN. If not present, it will

0 commit comments

Comments
 (0)