mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 19:36:00 +00:00
single conn
This commit is contained in:
@@ -43,6 +43,10 @@ class AuthProviderBase {
|
|||||||
getLoginPageConnections() {
|
getLoginPageConnections() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getSingleConnection(req) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class OAuthProvider extends AuthProviderBase {
|
class OAuthProvider extends AuthProviderBase {
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ module.exports = {
|
|||||||
const isLoginForm = authProvider.isLoginForm();
|
const isLoginForm = authProvider.isLoginForm();
|
||||||
const additionalConfigProps = authProvider.getAdditionalConfigProps();
|
const additionalConfigProps = authProvider.getAdditionalConfigProps();
|
||||||
|
|
||||||
|
const singleConnection = await authProvider.getSingleConnection(req);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
runAsPortal: !!connections.portalConnections,
|
runAsPortal: !!connections.portalConnections,
|
||||||
singleDbConnection: connections.singleDbConnection,
|
singleDbConnection: connections.singleDbConnection,
|
||||||
|
|||||||
Reference in New Issue
Block a user