Skip to content

Commit 057fdb3

Browse files
committed
lib/oauthutil: fix redirect URL mismatch errors - fixes rclone#8351
In this commit we introduced support for client credentials flow: 65012be lib/oauthutil: add support for OAuth client credential flow This involved re-organising the oauth credentials. Unfortunately a small error was made which used a fixed redirect URL rather than the one configured for the backend. This caused the box backend oauth flow not to work properly with redirect_uri_mismatch errors. These backends were using the wrong redirect URL and will likely be affected, though it is possible the backends have workarounds. - box - drive - googlecloudstorage - googlephotos - hidrive - pikpak - premiumizeme - sharefile - yandex
1 parent 3daf62c commit 057fdb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/oauthutil/oauthutil.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (conf *Config) MakeOauth2Config() *oauth2.Config {
108108
return &oauth2.Config{
109109
ClientID: conf.ClientID,
110110
ClientSecret: conf.ClientSecret,
111-
RedirectURL: RedirectLocalhostURL,
111+
RedirectURL: conf.RedirectURL,
112112
Scopes: conf.Scopes,
113113
Endpoint: oauth2.Endpoint{
114114
AuthURL: conf.AuthURL,

0 commit comments

Comments
 (0)