'Interfacing Shinymanager and Golem
I would like to know if there is any documentation about interfacing golem structure and shinymanager which is a package I use frequently to secure my app. The shinymanager workflow proposed on their github works well with a Ui.R / Server.R arborescence by wrapping the UI object in the secure_app() function and calling the server part to get the credentials, which in my case is a database called ‘credentials.sqlite’ stored on the package directory.
Do you have any snippets for that ?
Thanks you very much.
Solution 1:[1]
Sure, here is how to:
Use
{shinymanager}
as a dep https://github.com/ColinFay/golemshinymanager/blob/master/dev/02_dev.R#L18Wrap your UI in
shinymanager::secure_app()
inrun_app()
https://github.com/ColinFay/golemshinymanager/blob/master/dev/02_dev.R#L18Check your credentials in app_server https://github.com/ColinFay/golemshinymanager/blob/master/R/app_server.R#L10
See https://github.com/ColinFay/golemshinymanager for the reprex
Cheers, Colin
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Colin FAY |