-
Notifications
You must be signed in to change notification settings - Fork 59
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
Authentication on virtual machine #186
Comments
@laresbernardo thank you for that! That's exactly where I was stuck. What do you mean though that it's not programmatic? |
@mkirzon I mean you will still be redirected and will have to click/accept/interact with the UI manually. Don’t see how to run a script that authenticates and runs a task without having to save the token into an RDS file before to use it or manually interacting with the redirected site. |
It took me some time to find out what should I do in this situation. I've tried to add This link of a RStudio blog post shows the true (and sad) answer: just authenticate locally and then copy that damn token to your remote machine. |
I'm curiuos to read the blog post but I think you linked the wrong thing :) |
I'm trying to connect a virtual machine (ubuntu; command line via ssh/ no browser) to a newly-created dropbox scoped app.
For this app, I have a key, secret, and token, all taken from the Dropbox developer console page.
If I simply copy/ paste the token to my remote machine and run something like:
...this does nothing.
The helpfile for the rdstoken argument to the drop_auth function says:
"In server environments where interactive OAuth is not possible, a token can be created on a desktop client and used in production."
The ReadMe says:
If you expect to access a Dropbox account via Shiny or on a remote cluster, EC2, Digital Ocean etc, you can leave the cached oauth file in the same directory, or pass the token explicitly to drop_auth. You can also save the output of drop_auth into an R object, sink that to disk, and pass that as a token.
So I have a token in hand, but I don't know how to pass it.
Something else I tried
From a local machine (ie with a browser), I attempted
This results in the following error in a browser window (400 error):
_**"More details for developers
Invalid redirect_uri. It must exactly match one of the redirect URIs you've pre-configured for your app (including the path)."**_
Note that I've added both https://localhost and http://localhost as redirect URIs on the DB console.
Account Type
Dropbox Plus.
Session Info for the VM
The text was updated successfully, but these errors were encountered: