mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 08:26:01 +00:00
azure aith wip
This commit is contained in:
@@ -389,7 +389,7 @@ module.exports = {
|
||||
const { conid } = req.query;
|
||||
const connection = await this.getCore({ conid });
|
||||
const driver = requireEngineDriver(connection);
|
||||
const authUrl = driver.getRedirectAuthUrl(connection);
|
||||
const authUrl = await driver.getRedirectAuthUrl(connection);
|
||||
res.redirect(authUrl);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -56,7 +56,10 @@ module.exports = {
|
||||
if (connection.passwordMode == 'askPassword' || connection.passwordMode == 'askUser') {
|
||||
throw new MissingCredentialsError({ conid, passwordMode: connection.passwordMode });
|
||||
}
|
||||
const subprocess = fork(
|
||||
if (connection.useRedirectDbLogin) {
|
||||
throw new MissingCredentialsError({ conid, redirectToDbLogin: true });
|
||||
}
|
||||
const subprocess = fork(
|
||||
global['API_PACKAGE'] || process.argv[1],
|
||||
[
|
||||
'--is-forked-api',
|
||||
|
||||
Reference in New Issue
Block a user