mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 02:56:00 +00:00
azure auth
This commit is contained in:
@@ -400,7 +400,7 @@ module.exports = {
|
||||
const driver = requireEngineDriver(connection);
|
||||
const accessToken = await driver.getAuthTokenFromCode(connection, { code, redirectUri });
|
||||
const volatile = await this.saveVolatile({ conid, accessToken });
|
||||
console.log('******************************** WE HAVE ACCESS TOKEN', accessToken);
|
||||
socket.emit('got-volatile-token', { conid, volatileConId: volatile._id });
|
||||
// console.log('******************************** WE HAVE ACCESS TOKEN', accessToken);
|
||||
socket.emit('got-volatile-token', { savedConId: conid, volatileConId: volatile._id });
|
||||
},
|
||||
};
|
||||
|
||||
@@ -224,8 +224,8 @@ export function getVolatileConnections() {
|
||||
}
|
||||
|
||||
export function installNewVolatileConnectionListener() {
|
||||
apiOn('got-volatile-token', ({ conid, volatileConId }) => {
|
||||
setVolatileConnectionRemapping(conid, volatileConId);
|
||||
apiOn('got-volatile-token', ({ savedConId, volatileConId }) => {
|
||||
setVolatileConnectionRemapping(savedConId, volatileConId);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -10,8 +10,13 @@ async function azureGetAuthTokenFromCode(connection, code) {
|
||||
return null;
|
||||
}
|
||||
|
||||
function getAzureAuthOptions(connection) {
|
||||
return null;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getAzureAuthTypes,
|
||||
azureGetRedirectAuthUrl,
|
||||
azureGetAuthTokenFromCode,
|
||||
getAzureAuthOptions,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user