Skip to content

Commit 8fd1b51

Browse files
UgnineSirdisGazizonoki
authored andcommitted
Moved commit "Fix getting oauth2 key file credentials from environment" from ydb repo
1 parent 196ab2b commit 8fd1b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/helpers/helpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ TDriverConfig CreateFromEnvironment(const std::string& connectionString) {
5858
}
5959

6060
std::string oauth2KeyFile = GetStrFromEnv("YDB_OAUTH2_KEY_FILE", "");
61-
if (!saKeyFile.empty()) {
61+
if (!oauth2KeyFile.empty()) {
6262
driverConfig.SetCredentialsProviderFactory(
6363
CreateOauth2TokenExchangeFileCredentialsProviderFactory(oauth2KeyFile));
6464
return driverConfig;

0 commit comments

Comments
 (0)