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.
Sure, here is how to:
Use {shinymanager}
as a dep https://github.com/ColinFay/golemshinymanager/blob/master/dev/02_dev.R#L18
Wrap your UI in shinymanager::secure_app()
in run_app()
https://github.com/ColinFay/golemshinymanager/blob/master/dev/02_dev.R#L18
Check 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