get_basic_auth_credentials
get_basic_auth_credentials
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
include_source
When True, the returned tuple includes a third element indicating the credential
source: "provided" (set explicitly), "environment" (from SWML_BASIC_AUTH_USER
/ SWML_BASIC_AUTH_PASSWORD environment variables), or "generated" (auto-generated
at startup).
Returns
tuple[str, str] — (username, password) when include_source is False.
tuple[str, str, str] — (username, password, source) when include_source is
True.