Skip to content

Commit 9dabd51

Browse files
SNOW-2144731 Fix awaiting for PAT and session creation in the pool (#1188)
1 parent 6f9c22c commit 9dabd51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Snowflake.Data/Core/Authenticator/ProgrammaticAccessTokenAuthenticator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static bool IsProgrammaticAccessTokenAuthenticator(string authenticator)
1717

1818
public async Task AuthenticateAsync(CancellationToken cancellationToken)
1919
{
20-
await LoginAsync(cancellationToken);
20+
await LoginAsync(cancellationToken).ConfigureAwait(false);
2121
}
2222

2323
public void Authenticate()

Snowflake.Data/Core/Session/SessionPool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ internal bool AddSession(SFSession session, bool ensureMinPoolSize)
516516
session.SetPooling(false);
517517
}
518518

519-
var sessionContext = new SessionPropertiesContext { Password = Password, Token = Token };
519+
var sessionContext = new SessionPropertiesContext { Password = Password, OAuthClientSecret = OAuthClientSecret, Token = Token };
520520
if (!session.GetPooling())
521521
{
522522
ReleaseBusySession(session);

0 commit comments

Comments
 (0)