# OAuth URL changed or I'm always using the wrong URL?

**URL:** <https://developer.squareup.com/forums/t/oauth-url-changed-or-im-always-using-the-wrong-url/5654>\
**Category:** Questions\
**Tags:** oauth-api\
**Created:** [April 11, 2022, 5:21pm UTC](https://developer.squareup.com/forums/t/oauth-url-changed-or-im-always-using-the-wrong-url/5654 "2022-04-11T17:21:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![just\_Y](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/just_y/32/61_2.png) [@just\_Y](https://developer.squareup.com/forums/u/just_Y)\
**Post date:** [April 11, 2022, 5:21pm UTC](https://developer.squareup.com/forums/t/oauth-url-changed-or-im-always-using-the-wrong-url/5654/1 "2022-04-11T17:21:36Z")

</div>

Just out of curiosity about the OAuth URL. It seems we were always using the very old URL

This is our previous URL (now it doesn’t work anymore because it keeps complaining about missing client\_id)  
[https://www.squareup.com/oauth2/authorize?client\_id=sq0idp-wOBdtGv0qrukFmXeCZtjhA&scope=MERCHANT\_PROFILE\_READ%20PAYMENTS\_READ%20PAYMENTS\_WRITE%20CUSTOMERS\_READ%20CUSTOMERS\_WRITE%20ITEMS\_READ%20ITEMS\_WRITE%20ORDERS\_READ%20ORDERS\_WRITE%20EMPLOYEES\_READ%20INVENTORY\_READ&session=false&state=6a67394fd4f32c3d6395ccb202b05f81a122a72d1a2f4a359cc51ac067b2534600efd2033ec507fe68ead3fadca11cb50181d70d5ca5a1b4b3a4670d26ec0722](https://www.squareup.com/oauth2/authorize?client_id=sq0idp-wOBdtGv0qrukFmXeCZtjhA&scope=MERCHANT_PROFILE_READ%20PAYMENTS_READ%20PAYMENTS_WRITE%20CUSTOMERS_READ%20CUSTOMERS_WRITE%20ITEMS_READ%20ITEMS_WRITE%20ORDERS_READ%20ORDERS_WRITE%20EMPLOYEES_READ%20INVENTORY_READ&session=false&state=6a67394fd4f32c3d6395ccb202b05f81a122a72d1a2f4a359cc51ac067b2534600efd2033ec507fe68ead3fadca11cb50181d70d5ca5a1b4b3a4670d26ec0722)

Today we noticed that the correct URL should be  
[https://connect.squareup.com/oauth2/authorize?client\_id=sq0idp-wOBdtGv0qrukFmXeCZtjhA&scope=MERCHANT\_PROFILE\_READ%20PAYMENTS\_READ%20PAYMENTS\_WRITE%20CUSTOMERS\_READ%20CUSTOMERS\_WRITE%20ITEMS\_READ%20ITEMS\_WRITE%20ORDERS\_READ%20ORDERS\_WRITE%20EMPLOYEES\_READ%20INVENTORY\_READ&session=false&state=6a67394fd4f32c3d6395ccb202b05f81a122a72d1a2f4a359cc51ac067b2534600efd2033ec507fe68ead3fadca11cb50181d70d5ca5a1b4b3a4670d26ec0722](https://connect.squareup.com/oauth2/authorize?client_id=sq0idp-wOBdtGv0qrukFmXeCZtjhA&scope=MERCHANT_PROFILE_READ%20PAYMENTS_READ%20PAYMENTS_WRITE%20CUSTOMERS_READ%20CUSTOMERS_WRITE%20ITEMS_READ%20ITEMS_WRITE%20ORDERS_READ%20ORDERS_WRITE%20EMPLOYEES_READ%20INVENTORY_READ&session=false&state=6a67394fd4f32c3d6395ccb202b05f81a122a72d1a2f4a359cc51ac067b2534600efd2033ec507fe68ead3fadca11cb50181d70d5ca5a1b4b3a4670d26ec0722)

The only difference is the domain “[www.squareup.com](http://www.squareup.com)” vs “[connect.squareup.com](http://connect.squareup.com)”  
So, our first URL has been working for quite long and suddenly it didn’t work and we found we use a wrong URL!  
I’m just curious if the “[www.squareup.com](http://www.squareup.com)” was never used for OAuth process?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [April 11, 2022, 5:57pm UTC](https://developer.squareup.com/forums/t/oauth-url-changed-or-im-always-using-the-wrong-url/5654/2 "2022-04-11T17:57:51Z")

</div>

You may have been given a different link cause you’re a partner application and it was for some form of tracking. I’d recommend reaching out to you’re partner contact at Square to see which one you need to be using. 🙂

---

<div class="post-metadata">

**Author:** ![just\_Y](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/just_y/32/61_2.png) [@just\_Y](https://developer.squareup.com/forums/u/just_Y)\
**Post date:** [April 13, 2022, 6:05am UTC](https://developer.squareup.com/forums/t/oauth-url-changed-or-im-always-using-the-wrong-url/5654/3 "2022-04-13T06:05:13Z")

</div>

I see! Thank you for the explanation Bryan!
