getBasicAuthCredentials
Retrieve the username and password used for HTTP Basic Auth on this agent. Optionally includes a source label indicating where the credentials came from.
Parameters
includeSource
When true, the returned tuple includes a third element indicating the credential
source: "provided" (set explicitly), "config file" (from the agent’s config
file), "environment" (from SWML_BASIC_AUTH_USER / SWML_BASIC_AUTH_PASSWORD
environment variables), or "generated" (generated at startup). Credentials
resolve in that order.
Returns
[string, string] — [username, password] when includeSource is false.
[string, string, string] — [username, password, source] when includeSource is
true.