drop_create() authentication error
- Dominant language
- R
- Stars
- 253
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Research direction
Start at the drop_create() authentication path and compare its behavior with the other rdrop2 functions when using an RDS token file. Reproduce the issue in RStudio Server or a Shiny app with httr_oob_default set to TRUE; done means drop_create() uses the existing token without re-authentication and no invalid redirect_uri error occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- api, authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100