From 69bc4d03fc050ae43bb0628b0a5e0dfdcaf38735 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Mon, 22 Sep 2025 13:41:33 +0200 Subject: Added `--oidctoken-exe-unattended` to`zen builds` and `zen oplog-download` command to use unattended mode when launching oidc-token.exe (#506) --- src/zen/authutils.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/zen/authutils.cpp') 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(m_OidcTokenAuthExecutablePath)->default_value(""), ""); + Ops.add_option("auth", + "", + "oidctoken-exe-unattended", + "Set mode to unattended when launcing OidcToken executable", + cxxopts::value(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) -- cgit v1.2.3