This commit is contained in:
firetrap 2022-10-28 00:20:58 +01:00
parent 3e7deab35b
commit 4d3d13dd55
2 changed files with 21 additions and 13 deletions

View File

@ -37,17 +37,19 @@ const OneDriveApps = {
}
};
const MsTeamsApps = {
Local: {
id: '8fbe2245-13d5-446f-bedc-74c3b2e1f635'
},
Production: {
id: '8fbe2245-13d5-446f-bedc-74c3b2e1f635'
},
Desktop: {
id: '8fbe2245-13d5-446f-bedc-74c3b2e1f635',
secret: 'F02~HYaWs-~7MndJcVRtv9~h-50Brk_9ho'
}
};
const MsTeamsApps = OneDriveApps;
// const MsTeamsApps = {
// Local: {
// id: '8fbe2245-13d5-446f-bedc-74c3b2e1f635'
// },
// Production: {
// id: '8fbe2245-13d5-446f-bedc-74c3b2e1f635'
// },
// Desktop: {
// id: '8fbe2245-13d5-446f-bedc-74c3b2e1f635',
// secret: 'F02~HYaWs-~7MndJcVRtv9~h-50Brk_9ho'
// }
// };
export { DropboxApps, GDriveApps, OneDriveApps, MsTeamsApps };

View File

@ -49,7 +49,13 @@ const StorageOAuthListener = {
listener.emit('ready');
});
listener.redirectUri = `http://localhost:${port}/oauth-result/${storageName}.html`;
const redirectUriPrefix = `http://localhost:${port}/oauth-result`;
if (storageName === 'msteams') {// quickFix because I can't change the registered app redirect url
listener.redirectUri = `${redirectUriPrefix}/onedrive.html`;
} else {
listener.redirectUri = `${redirectUriPrefix}/${storageName}.html`;
}
return listener;
},