Shiny Server Routing With URL Parameters

Hello,

I would like to know if it is possible to locate/route applications according to url parameters. We have an auth api that needs to be called and it accepts parameters only in a certain way. Here is the shiny server config

 location /app {

    # Host the directory of Shiny Apps stored in this directory
    site_dir /srv/shiny-server/app;

    # Log all Shiny output to files in this directory
    log_dir /home/kryekuzhinieri/Desktop;

    # When a user visits the base URL rather than a particular application,
    # an index of the applications available in this directory will be shown.
    directory_index on;
  }

  location /api/callback {

    # Host the directory of Shiny Apps stored in this directory
    site_dir /srv/shiny-server/app;

    # Log all Shiny output to files in this directory
    log_dir /home/kryekuzhinieri/Desktop;

    # When a user visits the base URL rather than a particular application,
    # an index of the applications available in this directory will be shown.
    directory_index on;
  }

So, the authentication page redirects to our page through the following url:
https://website_name.com/api/callback?my_id=2

The problem is that shinyserver or shiny app do not accept url parameters returning a "Not Found" error. I should mention that the following url works but is not allowed by the third party auth app https://website_name.com/api/callback/?my_id=2

Is there any way in which we can redirect to our own app without starting the url params with a question mark?

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.