Fixed token issue, added OAuth2 including recipe and docs.

This commit is contained in:
MaxJa4
2023-08-21 16:48:17 +02:00
parent ddca5c4853
commit 70275eac86
4 changed files with 94 additions and 7 deletions

View File

@@ -220,9 +220,11 @@ func newScript() (*script, error) {
s.storages = append(s.storages, azureBackend)
}
if s.c.DropboxToken != "" {
if s.c.DropboxRefreshToken != "" && s.c.DropboxAppKey != "" && s.c.DropboxAppSecret != "" {
dropboxConfig := dropbox.Config{
Token: s.c.DropboxToken,
RefreshToken: s.c.DropboxRefreshToken,
AppKey: s.c.DropboxAppKey,
AppSecret: s.c.DropboxAppSecret,
RemotePath: s.c.DropboxRemotePath,
ConcurrencyLevel: s.c.DropboxConcurrencyLevel,
}