diff --git a/app/scripts/const/cloud-storage-apps.js b/app/scripts/const/cloud-storage-apps.js index fb6aa660..163fa946 100644 --- a/app/scripts/const/cloud-storage-apps.js +++ b/app/scripts/const/cloud-storage-apps.js @@ -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 }; diff --git a/app/scripts/storage/storage-oauth-listener.js b/app/scripts/storage/storage-oauth-listener.js index cb3de893..432be681 100644 --- a/app/scripts/storage/storage-oauth-listener.js +++ b/app/scripts/storage/storage-oauth-listener.js @@ -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; },