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

Incorrect URL query parsing on remote server #62

Open
Kvit opened this issue Feb 13, 2020 · 2 comments
Open

Incorrect URL query parsing on remote server #62

Kvit opened this issue Feb 13, 2020 · 2 comments
Assignees
Labels
bookmarking Problems related to bookmarking enhancement New feature or request

Comments

@Kvit
Copy link

Kvit commented Feb 13, 2020

Great package, but it does not seem to parse the URL query correctly on the remote server. Here is the test code to replicate the problem. Try to run the app on the local server with query string e.g. http://localhost:8080/?mydata=1234 , try to run the same code on the remote server with URL query. In my tests, the query parameters parsed correctly on the local server but did not parse on the remote URL.

# Auth0  Testing App
library(shiny)
library(auth0)

ui <- fluidPage(
  logoutButton(),
  hr(),
  h3("Query"),
  verbatimTextOutput("query"),
  h3("User Info"),
  verbatimTextOutput("user_info"),
  h3("Credentials Information"),
  verbatimTextOutput("credential_info"),
  h3("Environment Variables")
  ,verbatimTextOutput("envir")

)

# server with one observer that logouts
server <- function(input, output, session) {

  # print user info
  output$user_info <- renderPrint({
    session$userData$auth0_info
  })

  output$credential_info <- renderPrint({
    session$userData$auth0_credentials
  })

  # print env
 output$envir <- renderPrint({
    Sys.getenv()
  })

 # observe parse and print URL query

 observe({
   # get params from url
   query <- parseQueryString( req( session$clientData$url_search ) )
   output$query <- renderPrint({ query})

 })

}

shinyAppAuth0(ui, server)
@jtrecenti jtrecenti self-assigned this Feb 13, 2020
@jtrecenti jtrecenti added the enhancement New feature or request label Feb 13, 2020
@jtrecenti
Copy link
Member

Hi Kvit, we are trying to solve this for the bookimarking problem. Unfortunately I didn't have time yet to have a close look to the solution proposed in #60 . Probably will have time in march or april. Thanks!

@jtrecenti jtrecenti added this to the Bookmarking issues milestone Feb 13, 2020
@Kvit
Copy link
Author

Kvit commented Feb 13, 2020

This problem is solved in the fork by @pmoulos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bookmarking Problems related to bookmarking enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants