Skip to content

Commit 890bb6f

Browse files
committed
initial change
1 parent 53e0165 commit 890bb6f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/snowflake/connector/auth/_auth.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ def authenticate(
226226
if session_parameters:
227227
body["data"]["SESSION_PARAMETERS"] = session_parameters
228228

229+
from . import AuthByWorkloadIdentity
230+
231+
if isinstance(auth_instance, AuthByWorkloadIdentity):
232+
body["data"]["IMPERSONATION_PATH_LENGTH"] = len(
233+
auth_instance.impersonation_path or []
234+
)
235+
229236
logger.debug(
230237
"body['data']: %s",
231238
{

0 commit comments

Comments
 (0)