Add username and password to shiny app

How can I add username and password to my shiny application? I mean after hitting the action button, users should enter username and password to get access to the rest of the application.

A company called Appsilon has worked on such topic see this article
https://appsilon.com/user-authentication-in-r-shiny-sneak-peek-of-shiny-users-and-shiny-admin-packages/
That presents two :package: for this use case.

Authentication and user roles mechanism in your app are also dependent on where you host, and what authentication scheme you want. For example, you can deploy in a shiny server but behind a reverse proxy that does the authentication. If the user is not allowed to view the app, the reverse proxy won't let him pass.

You can also use pro product from RStudio. RStudio Connect has built-in support for private app.

You'll also find different solution on the web if you search for this topic.

Hope it helps

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.