# Oauth client Credentials Grant Integration gets an empty response

**URL:** <https://forum.shopware.com/t/oauth-client-credentials-grant-integration-gets-an-empty-response/99173>\
**Category:** Programming (EN)\
**Tags:** general, programming\
**Created:** [31. März 2023 um 07:53 UTC](https://forum.shopware.com/t/oauth-client-credentials-grant-integration-gets-an-empty-response/99173 "2023-03-31T07:53:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![charles0301](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/charles0301/32/8085_2.png) [@charles0301](https://forum.shopware.com/u/charles0301)\
**Post date:** [31. März 2023 um 07:53 UTC](https://forum.shopware.com/t/oauth-client-credentials-grant-integration-gets-an-empty-response/99173/1 "2023-03-31T07:53:08Z")

</div>

During the Client Credentials oauth API (api/oauth/token) call I am receiving an empty response with a 302 status code in the APP server. If anyone facing this issue and guides me to fix this issue.

 ![Selection_002](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/c/0/c0d1be06f1e9a8b683518cfc3a33bb6d809db8a3.png)

---

<div class="post-metadata">

**Author:** ![dthomson](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@dthomson](https://forum.shopware.com/u/dthomson)\
**Post date:** [2. April 2023 um 16:29 UTC](https://forum.shopware.com/t/oauth-client-credentials-grant-integration-gets-an-empty-response/99173/2 "2023-04-02T16:29:33Z")

</div>

Same issue here.

We are using another party’s integration to make API requests. The integration works without issue on a web install of Shopware 6.4.14 behind nginx.

We have been going through the submission process in the Shopware marketplace using a test environment with 6.4.20 and the third party’s integration no longer works.

The third party provided the curl command for receiving the oauth token. When the command is run against the [testenvironments.de](http://testenvironments.de) URL, a 302 is returned. Using a locla 6.4.20 docker the 302 is also returned.

---

<div class="post-metadata">

**Author:** ![dthomson](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@dthomson](https://forum.shopware.com/u/dthomson)\
**Post date:** [3. April 2023 um 14:28 UTC](https://forum.shopware.com/t/oauth-client-credentials-grant-integration-gets-an-empty-response/99173/3 "2023-04-03T14:28:13Z")

</div>

Hi,

Support advised that for docker/test environment the URL should be:  
{%domain%}/shop/public/api/oauth/token

We are able to get tokens now.
