Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login error after shiny timeout #61

Open
vdebuen opened this issue Sep 15, 2022 · 4 comments
Open

login error after shiny timeout #61

vdebuen opened this issue Sep 15, 2022 · 4 comments

Comments

@vdebuen
Copy link

vdebuen commented Sep 15, 2022

Hello.

First of all I would like to thank you for this great clearance package.

In general it works quite well for both login and logout but sometimes I encounter problems when the shiny session gives timeout after a long time.

When you refresh the page with F5 it freezes and on the terminal where the application is running I get these messages.

Warning: Error in UseMethod: no applicable method for 'tbl_vars' applied to an object of class "list"
  69: tbl_vars_dispatch
  66: tbl_vars
  64: tbl_nongroup_vars
  63: tbl_if_vars
  59: tbl_if_syms
  58: manip_if
  57: dplyr::mutate_if
  56: shinyauthr::loginServer
  51: server
   5: shiny::runApp
   4: eval
   3: eval
   1: source
Error in UseMethod("tbl_vars") :
  no applicable method for 'tbl_vars' applied to an object of class "list"

I realise that it is not at all easy to reproduce this error, but perhaps with this information you can guess what might be happening and how to avoid it.

This is the information of the package I have installed, as shown in the R statement sessionInfo()$otherPkgs$shinyauthr

Package: shinyauthr
Type: Package
Title: 'Shiny' Authentication Modules
Version: 1.0.0
Authors@R: c(person(given = "Paul", family = "Campbell", email = "[email protected]", role = c("aut", "cre"), comment =
              c(ORCID = "0000-0003-1018-6606")), person(given = "Michael", family = "Dewar", email = "[email protected]",
              role = "ctb"))
Description: Add in-app user authentication to 'shiny', allowing you to secure publicly hosted apps and build dynamic user
              interfaces from user information.
License: MIT + file LICENSE
Encoding: UTF-8
Imports: shiny (>= 1.5.0), shinyjs, dplyr, rlang, sodium, glue
Suggests: DBI, RSQLite, lubridate, shinydashboard, testthat (>= 3.0.0), shinytest, knitr, rmarkdown, covr
RoxygenNote: 7.1.1
URL: https://github.com/paulc91/shinyauthr
BugReports: https://github.com/paulc91/shinyauthr/issues
Config/testthat/edition: 3
NeedsCompilation: no
Packaged: 2021-07-19 10:41:29 UTC; paul
Author: Paul Campbell [aut, cre] (<https://orcid.org/0000-0003-1018-6606>), Michael Dewar [ctb]
Maintainer: Paul Campbell <[email protected]>
Repository: CRAN
Date/Publication: 2021-07-20 07:20:02 UTC
Built: R 4.1.2; ; 2022-06-12 10:08:22 UTC; unix

Thank you very much in advance

@vdebuen
Copy link
Author

vdebuen commented Sep 15, 2022

It would also be a good idea, for security reasons, for the system itself to logout when shiny goes into timeout and then require login again when the user returns.

@sanjmeh
Copy link

sanjmeh commented Nov 10, 2023

+1
did you find a solution? it seems this package is not maintained now.

@PaulC91
Copy link
Owner

PaulC91 commented Nov 11, 2023

@vdebuen @sanjmeh can you explain what you mean exactly by a shiny 'timeout' ? shinyauthr returns to a logged out state when a session is restarted (a page refresh for example). I'd need more information about what is happening during your app's 'timeout' to try to reproduce this.

@sanjmeh
Copy link

sanjmeh commented Nov 11, 2023

I am sorry, it was while using shinymanager ( and I thought I was using shinyauthr). It seems shinymanager has this bug.

If shinyauthr is better shall I give it a try?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants