mirror of
https://github.com/rclone/rclone.git
synced 2025-01-24 12:56:36 +02:00
dropbox: add missing team_data.member scope for use with --impersonate
See: https://forum.rclone.org/t/dropbox-business-not-accepting-oauth2/23390/32
This commit is contained in:
parent
4a5cbf2a19
commit
3e96752079
@ -102,6 +102,7 @@ var (
|
|||||||
"account_info.read", // needed for About
|
"account_info.read", // needed for About
|
||||||
// "file_requests.write",
|
// "file_requests.write",
|
||||||
// "members.read", // needed for impersonate - but causes app to need to be approved by Dropbox Team Admin during the flow
|
// "members.read", // needed for impersonate - but causes app to need to be approved by Dropbox Team Admin during the flow
|
||||||
|
// "team_data.member"
|
||||||
},
|
},
|
||||||
// Endpoint: oauth2.Endpoint{
|
// Endpoint: oauth2.Endpoint{
|
||||||
// AuthURL: "https://www.dropbox.com/1/oauth2/authorize",
|
// AuthURL: "https://www.dropbox.com/1/oauth2/authorize",
|
||||||
@ -131,8 +132,8 @@ func getOauthConfig(m configmap.Mapper) *oauth2.Config {
|
|||||||
}
|
}
|
||||||
// Make a copy of the config
|
// Make a copy of the config
|
||||||
config := *dropboxConfig
|
config := *dropboxConfig
|
||||||
// Make a copy of the scopes with "members.read" appended
|
// Make a copy of the scopes with extra scopes requires appended
|
||||||
config.Scopes = append(config.Scopes, "members.read")
|
config.Scopes = append(config.Scopes, "members.read", "team_data.member")
|
||||||
return &config
|
return &config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user