mirror of https://github.com/keeweb/keeweb.git
Merge 4d3d13dd55
into cb17bbe87d
This commit is contained in:
commit
4a5e33311b
|
@ -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 };
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue