Tychobra / polished

Authentication and Administration for Shiny apps
https://polished.tech
Other
234 stars 36 forks source link

Secure function for flexdashboard - runtime: shiny? #137

Closed mjfrigaard closed 3 years ago

mjfrigaard commented 3 years ago

Does the polished package have a polished::secure_ variant to pass a flexdashboard with the YAML header set to runtime: shiny?

I have a rather long-winded explanation of the issue I ran into here

I've been trying to get the authentication to work on this flexdashboard shiny application. The example from your repo has a broken url, but I noticed the polished::secure_static() function is looking for an .html file--can this take a url for the application on the shiny server?

merlinoa commented 3 years ago

I have updated the links in the examples repo README. Thanks for pointing that out! This is the correct link to the Rmd example: https://demo5.polished.tech/

And that is a great explanation in your link! Unfortunately polished does not work with Rmd documents with runtime: shiny. It only works for regular/static html documents created from .Rmd. Here is a similar GitHub issue: https://github.com/Tychobra/polished_example_apps/issues/17

I'll keep this issue open until we support .Rmds with runtime: shiny, but it will probably be a while. Sorry for the inconvenience.

mjfrigaard commented 3 years ago

Thank you for getting back to me so quickly! I'm somewhat relieved to hear it wasn't user error on my part :) I will close this issue since it appears you have a similar one open.

Cheers!