# Login/Logout redirect loop

**URL:** <https://community.auth0.com/t/login-logout-redirect-loop/168156>\
**Category:** Get Help\
**Tags:** application, sso\
**Created:** [January 10, 2025, 1:33pm UTC](https://community.auth0.com/t/login-logout-redirect-loop/168156 "2025-01-10T13:33:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![l1461887](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/l1461887/32/70256_2.png) [@l1461887](https://community.auth0.com/u/l1461887)\
**Post date:** [January 10, 2025, 1:33pm UTC](https://community.auth0.com/t/login-logout-redirect-loop/168156/1 "2025-01-10T13:33:49Z")

</div>

Hello, I am attempting to configure login for my .NET 8 MVC application. I have followed the quick start guide and added login and logout methods to my account controller. When user clicks login they are taken to auth0 to input credentials, after clicking login, it seems to get stuck in a loop of refreshing the page. This is the same with logout. If i stop and restart the app, the user is successfully logged in/out/. Allowed Callback/Login URL’s are configured. So effectively login does work but only after the app is restarted, otherwise it seems to get stuck in a loop

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [January 10, 2025, 5:34pm UTC](https://community.auth0.com/t/login-logout-redirect-loop/168156/3 "2025-01-10T17:34:17Z")

</div>

Hi @l1461887

Welcome to the Auth0 Community!  
I’m reading through your post and am working on providing some details/documents to assist with everything, just wanted to let you know that we’re looking into this for you.

Thank you for your patience!  
Gerald

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [January 10, 2025, 7:03pm UTC](https://community.auth0.com/t/login-logout-redirect-loop/168156/4 "2025-01-10T19:03:29Z")

</div>

I was able to find this resource that could prove useful when it comes to setting up your .[NET 8 application](https://auth0.com/blog/whats-new-dotnet8-authentication-authorization/). One detail that I found in previous looping cases was that " URL" instead of “URI” ( and vice-versa) could cause this, for example regarding the redirectURL/redirectURI parameters.  
Do you see anything within your logs related to these events, do they appear as successful?

---

<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:** [January 24, 2025, 7:03pm UTC](https://community.auth0.com/t/login-logout-redirect-loop/168156/5 "2025-01-24T19:03:41Z")

</div>

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