# ConnectionRequest Digest ACS - curl not the same

**URL:** <https://forum.genieacs.com/t/connectionrequest-digest-acs-curl-not-the-same/1063>\
**Category:** Uncategorized\
**Created:** [September 17, 2020, 10:53am UTC](https://forum.genieacs.com/t/connectionrequest-digest-acs-curl-not-the-same/1063 "2020-09-17T10:53:12Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![sebastien.crettaz](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sebastien.crettaz](https://forum.genieacs.com/u/sebastien.crettaz)\
**Post date:** [November 6, 2020, 1:46pm UTC](https://forum.genieacs.com/t/connectionrequest-digest-acs-curl-not-the-same/1063/8 "2020-11-06T13:46:35Z")

</div>

Hello again,

I finally found why there is a problem with the authentication with my CPE.

The header HTTP “Authorization” contains all values for authentication Digest and they are correct. But the problem is there is no space between thoses values and the CPE deny the authentication.

To allow this, I modified the file `lib/auth.ts` at line 169 by adding a space between all parameters :

```auto
   let authString = `Digest username="${username}"`;
   authString += `, realm="${authHeader.realm}"`;
   authString += `, nonce="${authHeader.nonce}"`;
   authString += `, uri="${uri}"`;
   if (authHeader.algorithm) authString += `, algorithm=${authHeader.algorithm}`;
   if (qop) authString += `, qop=${qop}, nc=${nc}, cnonce="${cnonce}"`;
   authString += `, response="${hash}"`;
   if (authHeader.opaque) authString += `, opaque="${authHeader.opaque}"`;

```

And now it works !

I don’t know if this should be the standard in the HTTP “Authorization” header but I cannot try this on another modem…

Hope it helps !

---

_[View the full topic](https://forum.genieacs.com/t/connectionrequest-digest-acs-curl-not-the-same/1063)._
