-
Notifications
You must be signed in to change notification settings - Fork 141
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
Google installed app loopback redirect OAuth flow #369
Conversation
@bclarkx2 - Thanks for doing this! I have tried this branch and although I was able to get it working, I did run into issues. The first issue is that when running The second issue I ran into was that the resulting From this point, all worked well. This may very well be something I'm doing wrong or some odd configuration on my box causing issues, but I wanted to share just in case I've found some odd edge-case. Thanks again for the updates! |
Thanks Brian,
What is to correct way for me to add those edits? In a fork of mine? How can I "attach" it to your pull request (That edit would only make sense if your PR is accepted). Thanks for the work! |
@nettlep thanks!
Very interesting! At least on my machine,
I wonder, does it work for you if you provide
This project's Dockerfile actually appears to always build from the
This is a solid point! If you have a valid I hope that will resolve the issue! |
@tom-ch1 great, glad to hear it worked!
I actually think that
I added Thanks for the feedback! |
For the ipv6 issue - you nailed it. It was my hosts file. I'm pretty sure I'm still running the default hosts file from Ubuntu 20.04.4 LTS). This is the
I decided to try again, so I commented out the problematic line and found another issue. This time, it properly listened on I actually did try the Thanks again for following up. Hopefully this gets accepted into the main repo (looking at you @vitalif !) |
I was getting error 500, and escaping |
Thank you for this patch; it worked for me! |
Do you have any timeline to merge this patch ? Moved to ocalm for now it works with new google drive requrirements : https://github.com/astrada/google-drive-ocamlfuse/ |
Lol. As always I first did something and then looked at PRs :D |
Sorry :D |
As per Making Google OAuth interactions safer by using more secure OAuth flows, Google is deprecating the Out-Of-Band OAuth flow for installed desktop apps that
grive2
currently uses on October 3, 2022. I'm actually not 100% if this includes requests for new access tokens given an existing, valid refresh token.Following the Out-Of-Band (OOB) flow Migration Guide, this PR attempts to migrate the app to use the Loopback IP address flow. It does this by spinning up a small HTTP server on
localhost
to accept the client-side redirect from the Google user consent flow.Key CR considerations:
localhost
. Not sure if that's kosher, so lmk if there's a better way to do this! In particular, I don't think this particular dependency is currently packaged on Alpine Linux which I saw the included Dockerfile using.0.5.2-dev
since I wasn't sure if you'd prefer to bundle updates into releases, but I am happy to increment this in this PR if preferred!