Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

fix(auth/oauth): change redirect url #665

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
gdrive
gdrive *(temporary fix 400 invalid request) - read release description for how it work*
======


Expand Down
2 changes: 1 addition & 1 deletion auth/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down