Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] gdrive auth uses random port for redirect #477

Open
ogg1e opened this issue Sep 10, 2023 · 0 comments
Open

[Bug] gdrive auth uses random port for redirect #477

ogg1e opened this issue Sep 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ogg1e
Copy link

ogg1e commented Sep 10, 2023

Describe the bug
setting up gdrive oauth requires you to add a redirect URL to client credentials in the google api and services web page. However, nut appears to use a random port each time, so you can't get it to work.

To Reproduce
Steps to reproduce the behaviour:

  1. Pu the credentials.json in the root folder
  2. add http://localhost to the trusted redirect URI in google api and services.
  3. run nut
  4. click on 'Setup Gdrive Auth'
  5. get google error page

Actual behaviour
Google error:
Error 400: redirect_uri_mismatch

You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy.

If you're the app developer, register the redirect URI in the Google Cloud Console.
Request details: redirect_uri=http://localhost:57795/

@ogg1e ogg1e added the bug Something isn't working label Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant