Skip to content

Commit efbebf3

Browse files
committed
docs: Updates documentation
1 parent 94d9ca8 commit efbebf3

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

vignettes/en_securing_shiny_google.Rmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ Replace `GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET`, and `SHINY_APP_URL` with you
6363

6464
## Step 4: Modify Shiny Application
6565

66-
Modify your Shiny app to use `sso_shiny_app`:
66+
Modify your Shiny app to use `tower` and `tapLock` for authentication. Below is a simple example of a Shiny app that uses Google authentication:
6767

6868
```r
6969
library(shiny)
7070
library(tapLock)
71+
library(tower)
7172

7273
# Authentication configuration
7374
auth_config <- new_openid_config(
@@ -92,7 +93,10 @@ server <- function(input, output, session) {
9293
}
9394

9495
# Secure Shiny app with tapLock
95-
sso_shiny_app(auth_config, ui, server)
96+
shinyApp(ui, server) |>
97+
tower::create_tower() |>
98+
tapLock::add_auth_layers(auth_config) |>
99+
tower::build_tower()
96100
```
97101

98102
## Step 5: Deploy the Application

vignettes/es_asegura_shiny_con_google.Rmd

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ Reemplaza `GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET`, y `SHINY_APP_URL` con tus
6363

6464
## Paso 4: Modificar Aplicación Shiny
6565

66-
Modifica tu aplicación Shiny para usar `sso_shiny_app`:
66+
Modifica tu aplicación Shiny para usar `tower` y `tapLock` para manejar la autenticación. Aquí hay un ejemplo básico:
6767

6868
```r
6969
library(shiny)
7070
library(tapLock)
71+
library(tower)
7172

7273
# Configuración de autenticación
7374
auth_config <- new_openid_config(
@@ -92,7 +93,10 @@ server <- function(input, output, session) {
9293
}
9394

9495
# Asegurar aplicación Shiny con tapLock
95-
sso_shiny_app(auth_config, ui, server)
96+
shinyApp(ui, server) |>
97+
tower::create_tower() |>
98+
tapLock::add_auth_layers(auth_config) |>
99+
tower::build_tower()
96100
```
97101

98102
## Paso 5: Desplegar la Aplicación

0 commit comments

Comments
 (0)