@lightdash/warehouses 0.2065.2 → 0.2066.0
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.
|
@@ -168,6 +168,10 @@ class SnowflakeWarehouseClient extends WarehouseBaseClient_1.default {
|
|
|
168
168
|
let authenticationOptions = {};
|
|
169
169
|
// if authenticationType is undefined, we assume it is a password authentication, for backwards compatibility
|
|
170
170
|
if (credentials.authenticationType === 'sso') {
|
|
171
|
+
if (!credentials.token) {
|
|
172
|
+
// Perhaps we forgot to refresh the token before building the client, check buildAdapter for more details
|
|
173
|
+
throw new common_1.UnexpectedServerError('Snowflake token is required for SSO authentication');
|
|
174
|
+
}
|
|
171
175
|
authenticationOptions = {
|
|
172
176
|
token: credentials.token,
|
|
173
177
|
authenticator: 'OAUTH',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightdash/warehouses",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2066.0",
|
|
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.
|
|
20
|
+
"@lightdash/common": "0.2066.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/pg": "^8.11.10",
|