rdrop2 icon indicating copy to clipboard operation
rdrop2 copied to clipboard

drop_create() authentication error

Open nadeem-mojo opened this issue 8 years ago • 4 comments

I am using several functions from rdrop2 package on in a shiny app. I am using a rds token file for authentication purpose. All the functions work well apart from drop_create().

Same issues arises on RStudio server also. Every other function works but re-authentication is required when I use drop_create().

Furthermore the authentication also doesn't work, I have set httr_oob_default = TRUE but when I go to the url generated for authentication token, I get a 400 error with the message:

Invalid redirect_uri. When response_type=code, redirect_uri must start with "https://", unless it's a localhost URI.

If I do the same on RStudio desktop, drop_create() works perfectly with the same token. Can someone guide me if I am missing anything here?

nadeem-mojo avatar Jul 12 '17 12:07 nadeem-mojo

Looking into this @nadeem-mojo Will report back.

karthik avatar Jul 28 '17 16:07 karthik

Same problem here!

jcolomb avatar Jul 05 '19 22:07 jcolomb

I think it worked with R3.5 and breaks with 3.6, but I am not sure

jcolomb avatar Jul 05 '19 22:07 jcolomb

simple workaround:

drop_acc(dtoken = tokenRG)
drop_create(XXX)

jcolomb avatar Jul 08 '19 12:07 jcolomb