# How to test application login URI locally if localhost is not valid

**URL:** <https://community.auth0.com/t/how-to-test-application-login-uri-locally-if-localhost-is-not-valid/167687>\
**Category:** Get Help\
**Tags:** user-invitation, user-management\
**Created:** [January 7, 2025, 3:41am UTC](https://community.auth0.com/t/how-to-test-application-login-uri-locally-if-localhost-is-not-valid/167687 "2025-01-07T03:41:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam77](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sam77/32/60715_2.png) [@sam77](https://community.auth0.com/u/sam77)\
**Post date:** [January 7, 2025, 3:41am UTC](https://community.auth0.com/t/how-to-test-application-login-uri-locally-if-localhost-is-not-valid/167687/1 "2025-01-07T03:41:17Z")

</div>

I have an internal application we built that only allows login from within our organization. Right now we have auto enable membership turned on so that everyone in our google domain can log in. However, we only want some people to be able to login that we specifically invite. I want to turn off auto enable membership and invite members to the organization. To do this, I need to set the application login URI so I can send invites. However, I can’t set this to localhost. How am I supposed to test this flow locally?

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [January 7, 2025, 2:23pm UTC](https://community.auth0.com/t/how-to-test-application-login-uri-locally-if-localhost-is-not-valid/167687/3 "2025-01-07T14:23:05Z")

</div>

Hi @sam77

Welcome to the Auth0 Community!

Thank you for posting your question; due to security reasons (more about that here → [Security Risks of Using Localhost for Callback URL](https://community.auth0.com/t/security-risks-of-using-localhost-for-callback-url/118781) ), We are not allowing the localhost for the application login uri. To workaround this, replace the localhost with `127.0.0.1` → [Application Login URI field payload validation error for https://localhost:3000/authorize - #20 by tunedev](https://community.auth0.com/t/application-login-uri-field-payload-validation-error-for-https-localhost-3000-authorize/31554/20)

Thanks  
Dawid

---

<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 21, 2025, 2:23pm UTC](https://community.auth0.com/t/how-to-test-application-login-uri-locally-if-localhost-is-not-valid/167687/4 "2025-01-21T14:23:46Z")

</div>

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