I'm using pydrive to upload a pdf file to a google drive, all is working super well, except there's one very unpleasant issue.
When I click in allow, all works well in the background, but it just doesn't redirect anywhere. If I click again, it redirects but also gives an error.
I'm not sure if there's any code showing that could help. I use this for redirect_uri:
gauth.flow.redirect_uri = "http://localhost/accounts/oauth_validator"
This works btw, it works when I'm not asking for consent, it only doesn't work when asking for consent.
Is there any settings that I'm missing?