Keep URL parameters after authentication with Auth0 - Shiny APP

I use Auth0 for the authentication of my Shiny APP. Now everything works fine, but I need a parameter that should be passed when calling the URL. When testing with localhost and AUth0 everything worked fine. But when I deploy the APP with RStudio Connect, the parameters are always deleted after authentication. How can I fix this problem? The parameter changes all the time, so I need some kind of wildcard.

This is what my _auth0.yml looks like in the Shiny APP:

```
name: SHINY APP
remote_url: https://server:port/folder/subfolder
auth0_config:
  api_url: https://api-url.auth0.com
  credentials:
    key: "xxx"
    secret: "xxx"
```

When I call the URL: https://server:port/folder/subfolder everything works fine. But now I need a URL Paramter like this: https://server:port/folder/subfolder/?number=8899988

When I call this url Auth0 works fine but direct my to: https://server:port/folder/subfolder

I tried it with https://server:port/folder/subfolder/?number=* but this does not work as remote_url. I have already entered all urls in the Auth0 settings, but without success. If I leave the remote_url empty I always get a random localhost address, but I can’t unlock it at Auth0 because the port is always changing here. With Localhost the parameter transfer and Auth0 works correctly.

What am I doing wrong here?

I’m having the same issue. Did you ever find a solution?

Same question. Any solution to this ever?

I ended up forking it. It’s a very small change. GitHub - species360/auth0: Authentication in shinyapps using Auth0 service

1 Like

Ah! Works brilliantly locally, but deployed on shinyapps.io seems to be having some trouble with callback URLs. Any tips?

Ah, figured it out; the modified library adds a question mark to the beginning of the URL suffix, even if there are no parameters being passed. Had to add "https://domain/? " to the auth0 app permissions. Working great now, thank you so much!