From d595481ad46a3b19b97966fa7fa481e82363f693 Mon Sep 17 00:00:00 2001 From: Andrie de Vries Date: Wed, 20 Dec 2023 20:29:59 +0000 Subject: [PATCH] Document how to create OOB token from Workbench --- vignettes/non-interactive-auth.Rmd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vignettes/non-interactive-auth.Rmd b/vignettes/non-interactive-auth.Rmd index dea763a5..a06dcdae 100644 --- a/vignettes/non-interactive-auth.Rmd +++ b/vignettes/non-interactive-auth.Rmd @@ -76,6 +76,20 @@ drive_auth(email = "*@example.com") At the end of this article, this scenario is explained in detail, if you want to understand why this works. + +## Sidebar 3: I am doing this from Posit Workbench + +The previous examples assumed you are working "locally", for example on a laptop running RStudio desktop (or other IDE). + +If you are developing in an online environment, for example Posit Workbench, you have to make one additional modification to the workflow. In this case add this addition line to your options: + +``` {r} +# default on Posit Workbench, but needed for Connect) +options(gargle_oauth_client_type = "web") +``` + +Then follow the all the other instructions in this guide. + ## Embrace credentials available in certain cloud settings In certain cloud computing contexts, a service account token may be ambiently available (or you can arrange for that to be true).