This commit is contained in:
Fábio Barreiros 2024-04-30 19:15:49 +02:00 committed by GitHub
commit 4a5e33311b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;
},