# Auth0 for shinyapp: Successful login returns user to Auth0 login, not the app

**URL:** <https://community.auth0.com/t/auth0-for-shinyapp-successful-login-returns-user-to-auth0-login-not-the-app/72510>\
**Category:** Get Help\
**Tags:** r-shiny\
**Created:** [November 2, 2021, 5:32pm UTC](https://community.auth0.com/t/auth0-for-shinyapp-successful-login-returns-user-to-auth0-login-not-the-app/72510 "2021-11-02T17:32:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jack.cattell](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jack.cattell/32/32753_2.png) [@jack.cattell](https://community.auth0.com/u/jack.cattell)\
**Post date:** [November 2, 2021, 5:32pm UTC](https://community.auth0.com/t/auth0-for-shinyapp-successful-login-returns-user-to-auth0-login-not-the-app/72510/1 "2021-11-02T17:32:35Z")

</div>

Hi

I have setup Auth0 for my shinyapp using the auth0 package. When I request the url I am successfully redirected to Auth0 to login. When I successfully login, Auth0 returns me to the app url but this starts the process again - I am directed to auth0 - rather than starting the shiny app. Anyone had this problem or has advice?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 2, 2021, 10:11pm UTC](https://community.auth0.com/t/auth0-for-shinyapp-successful-login-returns-user-to-auth0-login-not-the-app/72510/3 "2021-11-02T22:11:37Z")

</div>

Hi @jack.cattell,

Welcome to the Auth0 Community!

I understand that you’ve encountered an authentication loop with your Auth0 app.

First, could you please confirm whether you have configured the **Allowed Callback URLs** properly in your Application Settings in the Auth0 Dashboard?

And could you clarify if you also passed the `redirect_uri` in the authorization request?

For now, you may find our [Redirect Users](https://auth0.com/docs/login/redirect-users-after-login) docs helpful.

Looking forward to your response.

Thank you.

---

<div class="post-metadata">

**Author:** ![jack.cattell](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jack.cattell/32/32753_2.png) [@jack.cattell](https://community.auth0.com/u/jack.cattell)\
**Post date:** [November 3, 2021, 2:15pm UTC](https://community.auth0.com/t/auth0-for-shinyapp-successful-login-returns-user-to-auth0-login-not-the-app/72510/4 "2021-11-03T14:15:53Z")

</div>

thank you

The allowed callback url is configured correctly in format https:/host.mydomain.com/folder

I haven’t set a redirect\_uri, but see that parameter is correct in the url the shinyapp creates to be directed to Auth0. I did set remote\_uri as the same as above in the auth0.yml file.

The allowed callback url is the same as the one that starts the auth0 process.

Jack.

---

<div class="post-metadata">

**Author:** ![jack.cattell](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jack.cattell/32/32753_2.png) [@jack.cattell](https://community.auth0.com/u/jack.cattell)\
**Post date:** [November 3, 2021, 3:17pm UTC](https://community.auth0.com/t/auth0-for-shinyapp-successful-login-returns-user-to-auth0-login-not-the-app/72510/5 "2021-11-03T15:17:34Z")

</div>

Solved it - i hadn’t set the whitelist correctly.

thanks anyway.

Jack.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [November 3, 2021, 4:14pm UTC](https://community.auth0.com/t/auth0-for-shinyapp-successful-login-returns-user-to-auth0-login-not-the-app/72510/6 "2021-11-03T16:14:41Z")

</div>

Hi @jack.cattell,

Thank you for your responses.

I’m happy to hear that you solved it!

Please let me know if there’s anything else I can do to help.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 18, 2021, 4:15pm UTC](https://community.auth0.com/t/auth0-for-shinyapp-successful-login-returns-user-to-auth0-login-not-the-app/72510/7 "2021-11-18T16:15:28Z")

</div>

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