datastorm-open / shinymanager

Simple and secure authentification mechanism for single shiny applications.
https://datastorm-open.github.io/shinymanager/
386 stars 79 forks source link

keyring access from a web browser #46

Open jkmu1 opened 4 years ago

jkmu1 commented 4 years ago

Hi, I used the example for Shinymanager with an sqlite database in Rstudio, and everything worked ok. When I ran the same code from a web browser with shiny server, it failed with 'can't find keyring'
I checked keyring_list() from Rstudio:

library(keyring) keyring_list() keyring num_secrets locked 1 Login 2 FALSE 2 0 FALSE all ok. I then ran the app using Rscript from the command line : keyring num_secrets locked 1 0 FALSE Login keyring is not in the list. and if I try to create a service in the default keyring it fails. I created a new keyring, testkeyring, this worked ok, after keyring_unlock() used in the script, and using Rscript to run the app..
keyring num_secrets locked 1 0 FALSE 2 testkeyring 0 FALSE it still does not run when running the app in a browser, possibly keyring_unlock is causing it to stop. Is it likely to be permissions issue?

Best Regards, James