diff options
| author | Dan Engelbrecht <[email protected]> | 2025-09-22 13:41:33 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-09-22 13:41:33 +0200 |
| commit | 69bc4d03fc050ae43bb0628b0a5e0dfdcaf38735 (patch) | |
| tree | 301bc5d42fef96c5a6208b080ec5299bb0ce6496 /src/zen/authutils.cpp | |
| parent | change default sentry dsn to one listed on Sentry setup page (#504) (diff) | |
| download | archived-zen-69bc4d03fc050ae43bb0628b0a5e0dfdcaf38735.tar.xz archived-zen-69bc4d03fc050ae43bb0628b0a5e0dfdcaf38735.zip | |
Added `--oidctoken-exe-unattended` to`zen builds` and `zen oplog-download` command to use unattended mode when launching oidc-token.exe (#506)
Diffstat (limited to 'src/zen/authutils.cpp')
| -rw-r--r-- | src/zen/authutils.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/zen/authutils.cpp b/src/zen/authutils.cpp index 558398d79..69ea3f9c2 100644 --- a/src/zen/authutils.cpp +++ b/src/zen/authutils.cpp @@ -132,6 +132,12 @@ AuthCommandLineOptions::AddOptions(cxxopts::Options& Ops) "Path to OidcToken executable", cxxopts::value<std::string>(m_OidcTokenAuthExecutablePath)->default_value(""), ""); + Ops.add_option("auth", + "", + "oidctoken-exe-unattended", + "Set mode to unattended when launcing OidcToken executable", + cxxopts::value<bool>(m_OidcTokenUnattended), + ""); }; void @@ -227,7 +233,8 @@ AuthCommandLineOptions::ParseOptions(cxxopts::Options& Ops, } else if (std::filesystem::path OidcTokenExePath = FindOidcTokenExePath(m_OidcTokenAuthExecutablePath); !OidcTokenExePath.empty()) { - ClientSettings.AccessTokenProvider = httpclientauth::CreateFromOidcTokenExecutable(OidcTokenExePath, HostUrl, Quiet); + ClientSettings.AccessTokenProvider = + httpclientauth::CreateFromOidcTokenExecutable(OidcTokenExePath, HostUrl, Quiet, m_OidcTokenUnattended); } if (!ClientSettings.AccessTokenProvider) |