# OAuth2 localhost redirect\_url

**URL:** <https://community.hubspot.com/t/oauth2-localhost-redirect-url/16787>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [October 16, 2019, 11:17pm UTC](https://community.hubspot.com/t/oauth2-localhost-redirect-url/16787 "2019-10-16T23:17:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syncari](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/syncari/32/98942_2.png) [@Syncari](https://community.hubspot.com/u/Syncari)\
**Post date:** [October 16, 2019, 11:17pm UTC](https://community.hubspot.com/t/oauth2-localhost-redirect-url/16787/1 "2019-10-16T23:17:57Z")

</div>

Hello,

Did something changed OAuth2 settings for apps recently? We were using localhost as redirect URL successfully until last week, and today we cannot enter a localhost URL in Redirect URL field.

 ![Screen Shot 2019-10-16 at 4.16.08 PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/f/bf3a0918e6f39b9f864c9c0cf524f9ec5207b8ef.png)

---

<div class="post-metadata">

**Author:** ![lypn\_eng](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lypn_eng/32/60590_2.png) [@lypn\_eng](https://community.hubspot.com/u/lypn_eng)\
**Post date:** [October 17, 2019, 9:17am UTC](https://community.hubspot.com/t/oauth2-localhost-redirect-url/16787/2 "2019-10-17T09:17:15Z")

</div>

@Syncari - confirming that I’m also seeing this issue as of yesterday (17/10). Per the [docs](https://developers.hubspot.com/docs/methods/oauth2/initiate-oauth-integration), we should be able to use localhost for preprod. However, like you, I’m getting an error in the UI and I cannot choose this host.

I did try using the loopback address (which _is_ accepted in the UI) - but when you invoke an actual oauth journey, HS eventually returns an error stating that raw IPs are not supported as redirect URIs. This is in line with their docs - just a last ditch attempt on my part!

This is one for a HS UI engineer I think!

Also note this issue potentially related: [https://community.hubspot.com/t5/APIs-Integrations/Bug-in-Redirect-URL-validation/m-p/296243](https://community.hubspot.com/t5/APIs-Integrations/Bug-in-Redirect-URL-validation/m-p/296243). Also, when you include a ‘.’ in the value, the UI accepts your entry - defintely sounding like a UI validation thing.

---

<div class="post-metadata">

**Author:** ![Syncari](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/syncari/32/98942_2.png) [@Syncari](https://community.hubspot.com/u/Syncari)\
**Post date:** [October 18, 2019, 5:27pm UTC](https://community.hubspot.com/t/oauth2-localhost-redirect-url/16787/3 "2019-10-18T17:27:02Z")

</div>

Looks like its fixed now! Thanks for the fairly quick turnarounnd HS!
