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