Skip to content

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.

update path

LinkLeong8c0b219621d6
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