From e44934cf1b4783420f5a4c6acbdbac44488d92a9 Mon Sep 17 00:00:00 2001 From: Liam Mitchell Date: Wed, 14 Jan 2026 15:34:57 -0800 Subject: Use well-known OidcToken paths or command line arguments to determine OidcToken executable path --- src/zen/authutils.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src/zen/authutils.cpp') diff --git a/src/zen/authutils.cpp b/src/zen/authutils.cpp index fdcb8e15d..cf6179b5e 100644 --- a/src/zen/authutils.cpp +++ b/src/zen/authutils.cpp @@ -51,34 +51,6 @@ ReadAccessTokenFromJsonFile(const std::filesystem::path& Path) return AuthToken; } -std::filesystem::path -FindOidcTokenExePath(std::string_view OidcTokenAuthExecutablePath) -{ - if (OidcTokenAuthExecutablePath.empty()) - { - const std::string OidcExecutableName = "OidcToken" ZEN_EXE_SUFFIX_LITERAL; - std::filesystem::path OidcTokenPath = (GetRunningExecutablePath().parent_path() / OidcExecutableName).make_preferred(); - if (IsFile(OidcTokenPath)) - { - return OidcTokenPath; - } - OidcTokenPath = (std::filesystem::current_path() / OidcExecutableName).make_preferred(); - if (IsFile(OidcTokenPath)) - { - return OidcTokenPath; - } - } - else - { - std::filesystem::path OidcTokenPath = std::filesystem::absolute(StringToPath(OidcTokenAuthExecutablePath)).make_preferred(); - if (IsFile(OidcTokenPath)) - { - return OidcTokenPath; - } - } - return {}; -}; - void AuthCommandLineOptions::AddOptions(cxxopts::Options& Ops) { -- cgit v1.2.3