# Keep URL parameters after authentication with Auth0 - Shiny APP

**URL:** <https://community.auth0.com/t/keep-url-parameters-after-authentication-with-auth0-shiny-app/41072>\
**Category:** Get Help\
**Tags:** r-shiny, auth0\
**Created:** [April 14, 2020, 11:49pm UTC](https://community.auth0.com/t/keep-url-parameters-after-authentication-with-auth0-shiny-app/41072 "2020-04-14T23:49:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimadon](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dimadon/32/12778_2.png) [@dimadon](https://community.auth0.com/u/dimadon)\
**Post date:** [April 14, 2020, 11:49pm UTC](https://community.auth0.com/t/keep-url-parameters-after-authentication-with-auth0-shiny-app/41072/1 "2020-04-14T23:49:18Z")

</div>

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](https://server):port/folder/subfolder everything works fine. But now I need a URL Paramter like this: [https://server](https://server):port/folder/subfolder/?number=8899988

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

I tried it with [https://server](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?

---

<div class="post-metadata">

**Author:** ![sarah.hanley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sarah.hanley/32/48176_2.png) [@sarah.hanley](https://community.auth0.com/u/sarah.hanley)\
**Post date:** [June 19, 2023, 3:48pm UTC](https://community.auth0.com/t/keep-url-parameters-after-authentication-with-auth0-shiny-app/41072/2 "2023-06-19T15:48:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![noahhaber](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/noahhaber/32/59356_2.png) [@noahhaber](https://community.auth0.com/u/noahhaber)\
**Post date:** [August 22, 2024, 1:51pm UTC](https://community.auth0.com/t/keep-url-parameters-after-authentication-with-auth0-shiny-app/41072/3 "2024-08-22T13:51:52Z")

</div>

Same question. Any solution to this ever?

---

<div class="post-metadata">

**Author:** ![sarah.hanley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sarah.hanley/32/48176_2.png) [@sarah.hanley](https://community.auth0.com/u/sarah.hanley)\
**Post date:** [August 22, 2024, 2:09pm UTC](https://community.auth0.com/t/keep-url-parameters-after-authentication-with-auth0-shiny-app/41072/4 "2024-08-22T14:09:22Z")

</div>

I ended up forking it. It’s a very small change. [GitHub - species360/auth0: Authentication in shinyapps using Auth0 service](https://github.com/species360/auth0)

---

<div class="post-metadata">

**Author:** ![noahhaber](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/noahhaber/32/59356_2.png) [@noahhaber](https://community.auth0.com/u/noahhaber)\
**Post date:** [August 22, 2024, 3:37pm UTC](https://community.auth0.com/t/keep-url-parameters-after-authentication-with-auth0-shiny-app/41072/5 "2024-08-22T15:37:42Z")

</div>

Ah! Works brilliantly locally, but deployed on [shinyapps.io](http://shinyapps.io) seems to be having some trouble with callback URLs. Any tips?

---

<div class="post-metadata">

**Author:** ![noahhaber](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/noahhaber/32/59356_2.png) [@noahhaber](https://community.auth0.com/u/noahhaber)\
**Post date:** [August 23, 2024, 2:37pm UTC](https://community.auth0.com/t/keep-url-parameters-after-authentication-with-auth0-shiny-app/41072/6 "2024-08-23T14:37:32Z")

</div>

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/](https://domain/)? " to the auth0 app permissions. Working great now, thank you so much!
