-
-
Notifications
You must be signed in to change notification settings - Fork 94
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 Drive OAuth without a browser #81
Comments
As a workaround, you could try to use X11 so that the browser window is shown on your local machine :) |
Hmm, the notification from GitHub was in the spam.. Well, what you can do it follow the steps on another computer, and copy the |
Yeah I had/have several ideas for workarounds, but mot applications that require this kind of auth tend to handle this gracefully in the cli. Usually present the URL to copy paste, then wait with a prompt for the token. |
Currently there is no option like this, also not for regular desktop users. Do you have an example of a console application with this technique for al Google services? |
Don't have another app currently handy, but have used that workflow for sure before. Basically instead of trying to open a browser, you can ask the user to copy paste the URL (exposed in the Exception) into a browser, and give a prompt to provide the challenge to be pasted back, then save it. |
It looks like there is no way in the Google client to get this URL. We could indeed get it from the exception, which is not a good practice. But if that would work, it want to redirect to an URL, and if you open the URL on another machine/IP, the localhost server will not be there and it fails. Otherwise, if we could get some kind of token, I'm not sure if we can use that instead. I haven't found any solution with 30 minutes of Googling. |
Describe the bug
Trying to set this up the first time on a headless server, and there are no instructions on how to authorize the app if there is no browser available to open.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Handle the exception and ask to copy paste the link, then copy back the authorization token.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: