diff options
| author | Liam Mitchell <[email protected]> | 2026-01-14 15:34:57 -0800 |
|---|---|---|
| committer | Liam Mitchell <[email protected]> | 2026-01-14 15:36:09 -0800 |
| commit | e44934cf1b4783420f5a4c6acbdbac44488d92a9 (patch) | |
| tree | 54514f3878421108ce26a1f88eafda95aa90f6aa /src/zen/authutils.cpp | |
| parent | added early-out check in GcManager::ScrubStorage(ScrubContext& GcCtx) (#698) (diff) | |
| download | archived-zen-e44934cf1b4783420f5a4c6acbdbac44488d92a9.tar.xz archived-zen-e44934cf1b4783420f5a4c6acbdbac44488d92a9.zip | |
Use well-known OidcToken paths or command line arguments to determine OidcToken executable path
Diffstat (limited to 'src/zen/authutils.cpp')
| -rw-r--r-- | src/zen/authutils.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
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) { |