-
Notifications
You must be signed in to change notification settings - Fork 9
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
Issues refreshing the .httr-oauth on the server #4
Comments
You need to set the URL of where the app will run for your own Google Project, the details are a bit sparse here but some more are on the googleAuthR Readme https://github.com/MarkEdmondson1234/googleAuthR#for-shiny-use The default Google Project just uses my example URLs in my own Google Project, so you will need to setup your own Google Project with the correct g+ scopes enabled if you want to run it on your own domain names. Its also setup to use 127.0.0.1 which will work locally for most people |
Yes, I did that. On the panel I've set Authorized JavaScript origins && Authorized redirect URIs to redirect to my application. Also, I've set the scope to Google+ and I can see the requests comming, but apparently the only way to make it work if I use this |
Generating the Have you turned on the G+ APIs for your project? You will also need to set the options
...at the top of your shiny server.R |
Yes, I've set
You are correct regarding the multi user auth. What would be the best approach for that scenario? |
Avoid uploading any Do you get through past the Google auth screen? The issue usually appears when there is a typo in the URL or something - it needs to be https if there and end with the trailing slash. |
Ah and in Docker, you need to make sure that the Shiny Server has the right port exposed for return - are you on port 80 for that? Otherwise you may need to add the port number of where your Shiny installation is to your app URL return. |
👍
I have a proxy in front of the docker container that makes the tls termination. This way every request with the desired URL, gets forwarded to the shiny app. Could this be a problem? When trying on my staging environment (under a docker container, and behind a proxy), the address actually is So, this is the flow: When the error message is sent, the URL is I also should say that running locally without |
I'm just deploying a version to Docker to test it, will see whats up. It sounds like its finding its ok though, if you get back to your app. The In the meantime, you can avoid the URL version by using the JavaScript authentication version that you've already set up your Google Project for (may be good to test also that that works) That is as outlined in the RMarkdown document: https://mark.shinyapps.io/googleAuthRMarkdown/ |
Thanks a lot! I can show you the configuration that I'm using in the Basically its
Will try the JavaScript authentication version Thanks again! |
Ok, so I've tested the RMarkup version and its working like a charm inside the container Thanks a lot @MarkEdmondson1234 |
@matiasdecarli great, I'll still test the Docker version just to see if there is more that can be done |
Hello! I'm trying the library using this example
and even when it works locally, I can't make it work on a server. I'm using Docker to deploy the app on a remote server and after I authorize the app in google, I get a error message saying
On the log files I see
I suspect this is an error when trying to fetch/use
.httr-oauth
. I have force the file creation locally by manually doinggoogleAuthR::gar_auth()
but that doesn't work on the server.Is there any common flow to generate this file on the server by the user (I've tryed coping the file but doesn't work either)
Any help would be much appreciated!
Thanks
The text was updated successfully, but these errors were encountered: