@lightdash/warehouses 0.2093.0 → 0.2093.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,7 +173,7 @@ class SnowflakeWarehouseClient extends WarehouseBaseClient_1.default {
173
173
  throw new common_1.UnexpectedServerError('Snowflake token is required for SSO authentication');
174
174
  }
175
175
  authenticationOptions = {
176
- // Do not include username when doing SSO authentication
176
+ // Do not include username or role when doing SSO authentication
177
177
  token: credentials.token,
178
178
  authenticator: 'OAUTH',
179
179
  };
@@ -184,6 +184,7 @@ class SnowflakeWarehouseClient extends WarehouseBaseClient_1.default {
184
184
  if (!credentials.privateKeyPass) {
185
185
  authenticationOptions = {
186
186
  username: credentials.user,
187
+ role: credentials.role,
187
188
  privateKey: credentials.privateKey,
188
189
  authenticator: 'SNOWFLAKE_JWT',
189
190
  };
@@ -204,6 +205,7 @@ class SnowflakeWarehouseClient extends WarehouseBaseClient_1.default {
204
205
  });
205
206
  authenticationOptions = {
206
207
  username: credentials.user,
208
+ role: credentials.role,
207
209
  privateKey: privateKey.toString(),
208
210
  authenticator: 'SNOWFLAKE_JWT',
209
211
  };
@@ -212,13 +214,13 @@ class SnowflakeWarehouseClient extends WarehouseBaseClient_1.default {
212
214
  else if (credentials.password) {
213
215
  authenticationOptions = {
214
216
  username: credentials.user,
217
+ role: credentials.role,
215
218
  password: credentials.password,
216
219
  authenticator: 'SNOWFLAKE',
217
220
  };
218
221
  }
219
222
  this.connectionOptions = {
220
223
  account: credentials.account,
221
- role: credentials.role,
222
224
  ...authenticationOptions,
223
225
  database: credentials.database,
224
226
  schema: credentials.schema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/warehouses",
3
- "version": "0.2093.0",
3
+ "version": "0.2093.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "snowflake-sdk": "~2.1.3",
18
18
  "ssh2": "^1.14.0",
19
19
  "trino-client": "0.2.6",
20
- "@lightdash/common": "0.2093.0"
20
+ "@lightdash/common": "0.2093.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/pg": "^8.11.10",