This is a followup question my previous question: Is is possible to see the code for shiny glimmer apps
I was wondering is it too simplistic to build a DynamicUI as suggested here by R-Studio, that basically acts as a username and password to protect access to a glimmer app?
I was thinking of using something simple like the below in principal (obviously with all the inputs and outputs added etc:
if(username=="x" & password=="y") { run the shinny app } else { print("access denied")}
but was wondering if this is too simplistic and is something that could easily be broken.
Or perhaps somehow only allowing for three tries for the username and password combo...somehow...not too sure how shiny is going to recognise the same user has come back though...
Thoughts on this would be appreciated.