# Redirect Loop after Authentication

**URL:** <https://community.auth0.com/t/redirect-loop-after-authentication/88507>\
**Category:** Get Help\
**Tags:** redirect, loop, auth0\
**Created:** [August 10, 2022, 5:23pm UTC](https://community.auth0.com/t/redirect-loop-after-authentication/88507 "2022-08-10T17:23:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian\_watkins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brian_watkins/32/33461_2.png) [@brian\_watkins](https://community.auth0.com/u/brian_watkins)\
**Post date:** [August 10, 2022, 5:23pm UTC](https://community.auth0.com/t/redirect-loop-after-authentication/88507/1 "2022-08-10T17:23:04Z")

</div>

I have auth0 set up and working for one of my sites. We are using MVC web applications.  
For my other app, I am redirected to auth0 and complete the login. After the login it keeps redirecting back and forth between my site and auth0, adding a new nonce every time until I get an error that the response is too large.

I am not seeing any errors in my application or on auth0 logs.

---

<div class="post-metadata">

**Author:** ![brian\_watkins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brian_watkins/32/33461_2.png) [@brian\_watkins](https://community.auth0.com/u/brian_watkins)\
**Post date:** [August 11, 2022, 6:02pm UTC](https://community.auth0.com/t/redirect-loop-after-authentication/88507/2 "2022-08-11T18:02:40Z")

</div>

After doing more troubleshooting, I think I have a clearer picture of the issue.

This application is on a subdomain with many applications. I have this app on [sub.domain.com/app](http://sub.domain.com/app)  
however auth0 seems to be redirecting to [sub.domain.com/](http://sub.domain.com/) after authentication.

How can I make it go to [sub.domain.com/app](http://sub.domain.com/app)? I already have this as my return uri.

---

<div class="post-metadata">

**Author:** ![brian\_watkins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brian_watkins/32/33461_2.png) [@brian\_watkins](https://community.auth0.com/u/brian_watkins)\
**Post date:** [August 19, 2022, 4:07pm UTC](https://community.auth0.com/t/redirect-loop-after-authentication/88507/3 "2022-08-19T16:07:58Z")

</div>

Turns out I needed to add /LoginCallback to the end of my redirectUri.  
This fixed the issue for me.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 4, 2022, 2:59pm UTC](https://community.auth0.com/t/redirect-loop-after-authentication/88507/4 "2022-11-04T14:59:34Z")

</div>

Thanks for sharing with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 4, 2022, 2:59pm UTC](https://community.auth0.com/t/redirect-loop-after-authentication/88507/5 "2022-11-04T14:59:36Z")

</div>


