Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions forward_engineering/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
}
]
},
"externalBrowserPort": 8080,
"additionalOptions": [
{
"id": "applyDropStatements",
Expand Down
1 change: 1 addition & 0 deletions reverse_engineering/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"value": "connectByExternalBrowser"
}
],
"externalBrowserPort": 8080,
"helpUrl": "https://hackolade.com/help/ConnecttoaSnowflakeinstance.html"
}
5 changes: 3 additions & 2 deletions reverse_engineering/helpers/ssoHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ const snowflakeHelper = require('./snowflakeHelper');
const ssoAuthenticatorError = { message: "Can't get SSO URL. Please, check the SAML settings" };

const getSsoUrlData = async (logger, { host, redirectPort = 8080 }) => {
logger.log('info', `Starting SSO connection...`, 'Connection');
logger.log('info', `Redirect port: ${redirectPort}`, 'Connection');

const account = snowflakeHelper.getAccount(host);
const accessUrl = snowflakeHelper.getAccessUrl(account);
const ssoUrlsData = await axios.post(`${accessUrl}/session/authenticator-request`, {
Expand All @@ -13,8 +16,6 @@ const getSsoUrlData = async (logger, { host, redirectPort = 8080 }) => {
},
});

logger.log('info', `Starting SSO connection...`, 'Connection');

const ssoUrl = _.get(ssoUrlsData, 'data.data.ssoUrl', '');
const proofKey = _.get(ssoUrlsData, 'data.data.proofKey', '');
logger.log('info', `SSO URL: ${ssoUrl}`, 'Connection');
Expand Down