# API Fehler: Digest realm Shopware REST-API?

**URL:** <https://forum.shopware.com/t/api-fehler-digest-realm-shopware-rest-api/100171>\
**Category:** Shopware 5\
**Created:** [20. Juni 2023 um 10:20 UTC](https://forum.shopware.com/t/api-fehler-digest-realm-shopware-rest-api/100171 "2023-06-20T10:20:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [20. Juni 2023 um 10:20 UTC](https://forum.shopware.com/t/api-fehler-digest-realm-shopware-rest-api/100171/1 "2023-06-20T10:20:49Z")

</div>

Bei einem SW 5.7.17 Shop geht die API nicht. Benutzer und API-Key sind korrekt eingestellt. Es kommt permanent die Fehlermeldung:

```auto
{"success":false,"message":"Invalid or missing auth"}

```

Im Header steht zudem auch:

```auto
www-authenticate: Digest realm="Shopware REST-API", domain="/", nonce="c1f7c0320403e83e81a277a9d697dfd4", opaque="d75db7b160fe72d1346d2bd1f67bfd10", algorithm="MD5", qop="auth"

```

Das ist aber nur bei einem bestimmten Shop, bei anderen Shops selber Shop-Version, selber PHP-Version tritt dieses Verhalten nicht auf. Bin im Moment etwas überfragt.

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [20. Juni 2023 um 11:04 UTC](https://forum.shopware.com/t/api-fehler-digest-realm-shopware-rest-api/100171/2 "2023-06-20T11:04:36Z")

</div>

Konnte die Ursache finden:

.htaccess

```auto
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 

```
