From 8c0b219621d6ac501615e6c4adb5cf48b536eec6 Mon Sep 17 00:00:00 2001 From: LinkLeong Date: Thu, 24 Aug 2023 11:21:44 +0100 Subject: [PATCH] update path --- drivers/dropbox/util.go | 2 +- drivers/google_drive/util.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dropbox/util.go b/drivers/dropbox/util.go index b799cde..24b5786 100644 --- a/drivers/dropbox/util.go +++ b/drivers/dropbox/util.go @@ -108,7 +108,7 @@ func (d *Dropbox) getFiles(path string) ([]File, error) { func GetConfig() Dropbox { dp := Dropbox{} dp.RootFolderID = "" - dp.AuthUrl = "https://www.dropbox.com/oauth2/authorize?client_id=" + app_key + "&redirect_uri=https://cloudoauth.files.casaos.app&response_type=code&token_access_type=offline&state=${HOST}%2Fv2%2Frecover%2FDropbox&&force_reapprove=true&force_reauthentication=true" + dp.AuthUrl = "https://www.dropbox.com/oauth2/authorize?client_id=" + app_key + "&redirect_uri=https://cloudoauth.files.casaos.app&response_type=code&token_access_type=offline&state=${HOST}%2Fv1%2Frecover%2FDropbox&&force_reapprove=true&force_reauthentication=true" dp.AppKey = app_key dp.AppSecret = app_secret dp.Icon = "./img/driver/Dropbox.svg" diff --git a/drivers/google_drive/util.go b/drivers/google_drive/util.go index a67cf70..8b0e6f5 100644 --- a/drivers/google_drive/util.go +++ b/drivers/google_drive/util.go @@ -160,7 +160,7 @@ func GetConfig() GoogleDrive { config.ClientID = client_id config.ClientSecret = client_secret config.RootFolderID = "root" - config.AuthUrl = "https://accounts.google.com/o/oauth2/auth/oauthchooseaccount?response_type=code&client_id=" + client_id + "&redirect_uri=https%3A%2F%2Fcloudoauth.files.casaos.app&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&access_type=offline&approval_prompt=force&state=${HOST}%2Fv2%2Frecover%2FGoogleDrive&service=lso&o2v=1&flowName=GeneralOAuthFlow" + config.AuthUrl = "https://accounts.google.com/o/oauth2/auth/oauthchooseaccount?response_type=code&client_id=" + client_id + "&redirect_uri=https%3A%2F%2Fcloudoauth.files.casaos.app&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&access_type=offline&approval_prompt=force&state=${HOST}%2Fv1%2Frecover%2FGoogleDrive&service=lso&o2v=1&flowName=GeneralOAuthFlow" config.Icon = "./img/driver/GoogleDrive.svg" return config