shinymanager icon indicating copy to clipboard operation
shinymanager copied to clipboard

Use shinyjs in the authorisation page of a shinymanager app

Open pepijn-devries opened this issue 2 years ago • 1 comments

Hi there,

Thank you for your work on shinymanager! I have the following problem when using javascript in shiny apps in combination with a secure_app from shinymanager.

When using javascript in Shiny apps, the shinyjs is the default (at least for me). It has been a struggle to figure out where to place the shinyjs::useShinyjs() call in order to use javascript at the authorisation page., Eventually I've figured out that I had to pass this call via the head_auth argument.

I've reported this issue earlier at shinyjs, but its developer (@daattali) and I came to the conclusion that it would be handled best by improving the documentation of the shinymanager package. See closed issue and pull request: https://github.com/daattali/shinyjs/issues/258 and https://github.com/daattali/shinyjs/pull/259.

Hopefully, you can look into this.

Kind regards,

Pepijn

pepijn-devries avatar Jan 16 '23 15:01 pepijn-devries

If only the shinymanager documentation is improved a bit.. it is a terrific idea to wrap another shiny app for security purposes.

sanjmeh avatar May 24 '23 03:05 sanjmeh