GoogleDrive `redirect_uri=http://localhost:port/` should be `redirect_uri=http://localhost:port`
NikitaIT opened this issue · 2 comments
NikitaIT commented
- Open console
https://console.developers.google.com/apis/credentials/oauthclient/${your_client_id}?project=${your_project_number}
- Set
http://localhost:port
as allowed to redirect and scripts. (URL ends with "/" - not valid) - Go to
http://localhost:port
. - Select GoogleDrive in Widget.
- App sends request like:
https://accounts.google.com/o/oauth2/auth?redirect_uri=http://localhost:port/&scope=https://www.googleapis.com/auth/drive&client_id=...&response_type=token
- Oops.
Error:
The redirect URI in the request, http://localhost:port/, does not match the ones authorized for the OAuth client.
P.s. If i send request manualy without "/" it works fine.
env:
"remotestorage-widget": "^1.5.2",
"remotestoragejs": "^2.0.0-alpha.5",
raucao commented
FYI: Just published 2.0.0-alpha.6
including the fix for this (and with a much smaller library file size).
NikitaIT commented