azure auth

This commit is contained in:
Jan Prochazka 2024-08-05 11:56:49 +02:00
parent de60f1b335
commit fb2e261a08
3 changed files with 9 additions and 4 deletions

View File

@ -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 });
},
};

View File

@ -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);
});
}

View File

@ -10,8 +10,13 @@ async function azureGetAuthTokenFromCode(connection, code) {
return null;
}
function getAzureAuthOptions(connection) {
return null;
}
module.exports = {
getAzureAuthTypes,
azureGetRedirectAuthUrl,
azureGetAuthTokenFromCode,
getAzureAuthOptions,
};