mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
azure auth
This commit is contained in:
parent
de60f1b335
commit
fb2e261a08
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user