# AppRegistrationException - The app provided an invalid response

**URL:** <https://forum.shopware.com/t/appregistrationexception-the-app-provided-an-invalid-response/95938>\
**Category:** Programming (EN)\
**Created:** [24. August 2022 um 14:25 UTC](https://forum.shopware.com/t/appregistrationexception-the-app-provided-an-invalid-response/95938 "2022-08-24T14:25:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmszcncl](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/tmszcncl/32/18016_2.png) [@tmszcncl](https://forum.shopware.com/u/tmszcncl)\
**Post date:** [24. August 2022 um 14:25 UTC](https://forum.shopware.com/t/appregistrationexception-the-app-provided-an-invalid-response/95938/1 "2022-08-24T14:25:46Z")

</div>

Hi again,

I’m trying to register an app in ShopWare (dockware installation) and after creating manifest file I’m trying to install it via console by `bin/console app:install --activate MyApp` however I’m receiving response that is not telling me too much:

` [Shopware\Core\Framework\App\Exception\AppRegistrationException] The app provided an invalid response`

Request going from shopware to my app has those params:

`{"shop-id"=>"UzdrLOQrFbUcZP5e", "shop-url"=>"http://localhost", "timestamp"=>"1661350836"}`

and I’m sending back this response (in json):

`{"proof"=>"62e96ed5dcac5f816196494f0d37b935bf4a0cd6799b0fb16c7729a1f538aac4", "secret"=>"randomly_generated_secret", "confirmation_url"=>"http://host.docker.internal:3000/confirmation"}`

Am I calculating it correctly (digest is calculated as sha256 from shop-id, shop-url, app-name and app-secret) ? Or what could I do wrong here? Logs do not contain anything valuable.

---

<div class="post-metadata">

**Author:** ![tmszcncl](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/tmszcncl/32/18016_2.png) [@tmszcncl](https://forum.shopware.com/u/tmszcncl)\
**Post date:** [24. August 2022 um 15:01 UTC](https://forum.shopware.com/t/appregistrationexception-the-app-provided-an-invalid-response/95938/2 "2022-08-24T15:01:19Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/4/f/4ff2521ca76f02f2547390382678a2306b4ba6a8.jpeg)

---

<div class="post-metadata">

**Author:** ![tmszcncl](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/tmszcncl/32/18016_2.png) [@tmszcncl](https://forum.shopware.com/u/tmszcncl)\
**Post date:** [25. August 2022 um 06:18 UTC](https://forum.shopware.com/t/appregistrationexception-the-app-provided-an-invalid-response/95938/3 "2022-08-25T06:18:34Z")

</div>

Again - topic could be closed. Problem was with calculating proof as sha256 and not hmac sha256 - now it works 🙂
