digest icon indicating copy to clipboard operation
digest copied to clipboard

HTTP Digest Authentication for Go

Results 8 digest issues
Sort by recently updated
recently updated
newest added

There is a bug with this library. If you use the wrapper to send http post with body (eg. json) you will get a "ContentLeng=... with Body length is 0"...

The body is needed for both requests, so we need to copy it, otherwise the second request will fail with a zero length body.

Not sure what it says in the specification but the server I'm calling does not use whitespaces between params in the challenge. I.e. when splitting on comma plus whitespace it...

The RFC states that a challenge can be re-used for more than one request. This let's you avoid making 2 round-trips for every request. The transport implementation doesn't do that.

If the Digest contains a "charset" directive, (or anything not covered by the switch statement) it will throw a ErrBadChallenge Error. ("Challenge is bad"). One can add the additional cases...

There is no cookie handling in the RoundTrip function for the cookies possibly returned by the first request