fix #1713: OneDrive authentication on web

This commit is contained in:
antelle 2021-03-01 18:03:13 +01:00
parent a4881419df
commit c4ec91f61a
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
3 changed files with 8 additions and 3 deletions

View File

@ -26,10 +26,12 @@ const GDriveApps = {
const OneDriveApps = {
Local: {
id: 'b97c53d5-db5b-4124-aab9-d39195293815',
secret: 'V9b6:iJU]N7cImE1f_OLNjqZJDBnumR?'
id: 'b97c53d5-db5b-4124-aab9-d39195293815'
},
Production: {
id: 'bbc74d1b-3a9c-46e6-9da4-4c645e830923'
},
Desktop: {
id: 'bbc74d1b-3a9c-46e6-9da4-4c645e830923',
secret: 'aOMJaktJEAs_Tmh]fx4iQ[Zd3mp3KK7-'
}

View File

@ -222,7 +222,9 @@ class StorageOneDrive extends StorageBase {
let clientId = this.appSettings.onedriveClientId;
let clientSecret = this.appSettings.onedriveClientSecret;
if (!clientId) {
if (Features.isLocal) {
if (Features.isDesktop) {
({ id: clientId, secret: clientSecret } = OneDriveApps.Desktop);
} else if (Features.isLocal) {
({ id: clientId, secret: clientSecret } = OneDriveApps.Local);
} else {
({ id: clientId, secret: clientSecret } = OneDriveApps.Production);

View File

@ -17,6 +17,7 @@ Release notes
##### v1.16.8 (TBD)
`-` fix #1726: search in protected fields
`-` fix #1713: OneDrive authentication on web
##### v1.16.7 (2020-12-31)
`-` fix #1671: new lines removal issue in notes