# Connection always Unauthorized when using Digest Authentication

**URL:** <https://forum.genieacs.com/t/connection-always-unauthorized-when-using-digest-authentication/2476>\
**Category:** Uncategorized\
**Created:** [March 14, 2022, 12:32pm UTC](https://forum.genieacs.com/t/connection-always-unauthorized-when-using-digest-authentication/2476 "2022-03-14T12:32:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sami](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/sami/32/807_2.png) [@Sami](https://forum.genieacs.com/u/Sami)\
**Post date:** [March 14, 2022, 12:32pm UTC](https://forum.genieacs.com/t/connection-always-unauthorized-when-using-digest-authentication/2476/1 "2022-03-14T12:32:33Z")

</div>

Hello,  
After enabling auth via cwmp.auth \> Config my client is unable to connect even if the challenge is solved :  
Server response :

```auto
HTTP/1.1 401 Unauthorized
Content-Length: 12
WWW-Authenticate: Digest realm="GenieACS",qop="auth,auth-int",nonce="f346fcfee63081c4a4c907e90e596615"
Date: Mon, 14 Mar 2022 12:27:51 GMT
Connection: close

Unauthorized

```

client headers

```auto
POST / HTTP/1.1
Pragma: no-cache
Cache-Control: no-cache
Host: 172.17.0.4
Origin: http://172.17.0.4
connection: close
user-agent: prpl_user_agent
content-length: 2265
content-type: text/xml; charset=ISO-8859-1
authorization: Digest username="cdrouter", realm="GenieACS", uri="/", nonce="f346fcfee63081c4a4c907e90e596615", nc=00000001, cnonce="qOB5OehN9GwbBevGPl5V82PGWatIGWBU", qop=auth, algorithm=MD5, response="ed429e8365adc13fd9a3df169659da33"
SOAPAction: 

```

But the server is replying with a 401 Unauthorized again and sent a new challenge :

```auto
HTTP/1.1 401 Unauthorized
Content-Length: 12
WWW-Authenticate: Digest realm="GenieACS",qop="auth,auth-int",nonce="cb1196759cd6e7c4b503136da168989f"
Date: Mon, 14 Mar 2022 12:27:52 GMT
Connection: close

Unauthorized

```

I can’t see any problem in the client response ?
