From 18f934d50ababcfaf1b94da44133ecacca5a1ae3 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 19 Dec 2022 08:09:15 +0100 Subject: [PATCH 1/2] fix(auth/oauth): change redirect url --- auth/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/oauth.go b/auth/oauth.go index bc567385..ff799cee 100644 --- a/auth/oauth.go +++ b/auth/oauth.go @@ -87,7 +87,7 @@ func getConfig(clientId, clientSecret string) *oauth2.Config { ClientID: clientId, ClientSecret: clientSecret, Scopes: []string{"https://www.googleapis.com/auth/drive"}, - RedirectURL: "urn:ietf:wg:oauth:2.0:oob", + RedirectURL: "http://localhost:1", Endpoint: oauth2.Endpoint{ AuthURL: "https://accounts.google.com/o/oauth2/auth", TokenURL: "https://accounts.google.com/o/oauth2/token", From 8c6eeba873aac0b7e638f2563be8a339a7f6619b Mon Sep 17 00:00:00 2001 From: ^BugCode Date: Tue, 20 Dec 2022 05:43:03 +0330 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 46630f6b..d16682ea 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -gdrive +gdrive *(temporary fix 400 invalid request) - read release description for how it work* ======