Git Product home page Git Product logo

Comments (4)

ibc avatar ibc commented on August 17, 2024

The same applies for 'algorithm' which should not be enclosed between ".
I've updated the patch: http://gist.github.com/259724

from httpclient.

nahi avatar nahi commented on August 17, 2024

Applied a patch from ibc: DigestAuth header quotation error: closed by 6f48800.

qup and algorithm is not required to be quoted. RFC2617 includes an
example 'qop="auth,auth-int"' though...

from httpclient.

ibc avatar ibc commented on August 17, 2024

The example in RFC 2617 'qop="auth,auth-int"' is in a response so in WWW-Authenticate or Proxy-Authenticate headers. In this case the "qop" grammar does require value enclosed between double quotes.

But in WWW-Authorization or Proxy-Authorization headers (this is, in HTTP requests) qop grammar is different, it can contain just one value so doesn't allow double quotes.

RFC 2617 section 3.2.1 The WWW-Authenticate Response Header:

qop-options       = "qop" "=" <"> 1#qop-value <">
qop-value         = "auth" | "auth-int" | token

RFC 2617 3.2.2 The Authorization Request Header:

message-qop      = "qop" "=" qop-value

from httpclient.

nahi avatar nahi commented on August 17, 2024

You're right. Thank you!

ibc, since you know DigestAuth spec better than me, would you please check the fix for https://github.com/nahi/httpclient/issues/closed#issue/43, too if you can? Does the change look safe?

from httpclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.