Coder Social home page Coder Social logo

Comments (5)

gevorg avatar gevorg commented on July 22, 2024

Please check the digest_nofile.js example, I tested with the latest version and it works for me.

Digest username="simon", realm="Simon Area.", nonce="57341f022e1d6b3da39cba6dd39996f9", uri="/admin/sync/ris_ratingsbooklist?marketcodes=425", algorithm=MD5, response="9ab4f6320988fe8ce371f3899830ba14", qop=auth, nc=00000003, cnonce="2b692799f9db4793"

[ username: 'simon',
realm: 'Simon Area.',
nonce: '57341f022e1d6b3da39cba6dd39996f9',
uri: '/admin/sync/ris_ratingsbooklist?marketcodes=425',
algorithm: 'MD5',
response: '9ab4f6320988fe8ce371f3899830ba14',
qop: 'auth',
nc: '00000003',
cnonce: '2b692799f9db4793' ]

from http-auth.

gevorg avatar gevorg commented on July 22, 2024

Btw new loop looks like this:

  for token in tokens # Looping tokens.   
    # this is for IE, Chrome sends space after ',' while IE don't
    token = token.trim()
    sepIndex = token.indexOf "=" # Separator index.

    name = token.substr 0, sepIndex # First part with name.
    value = token.substr sepIndex + 1 # Second part with value.

    if (value.indexOf "\"") != -1 
      value = value.substr 1, (value.length - 2) # Strip quotes.

    # Add option.
    clientOptions[name] = value; 

from http-auth.

llawrence avatar llawrence commented on July 22, 2024

I will try the latest version from github. I was refreshing from npm.
Thank you!

On Wed, Oct 1, 2014 at 9:07 AM, Gevorg Harutyunyan <[email protected]

wrote:

Please check the digest_nofile.js example, I tested with the latest
version and it works for me.

Digest username="simon", realm="Simon Area.",
nonce="57341f022e1d6b3da39cba6dd39996f9",
uri="/admin/sync/ris_ratingsbooklist?marketcodes=425", algorithm=MD5,
response="9ab4f6320988fe8ce371f3899830ba14", qop=auth, nc=00000003,
cnonce="2b692799f9db4793"

[ username: 'simon',
realm: 'Simon Area.',
nonce: '57341f022e1d6b3da39cba6dd39996f9',
uri: '/admin/sync/ris_ratingsbooklist?marketcodes=425',
algorithm: 'MD5',
response: '9ab4f6320988fe8ce371f3899830ba14',
qop: 'auth',
nc: '00000003',
cnonce: '2b692799f9db4793' ]

β€”
Reply to this email directly or view it on GitHub
https://github.com/gevorg/http-auth/issues/40#issuecomment-57490518.

from http-auth.

gevorg avatar gevorg commented on July 22, 2024

yw, just let me know if it will not work for you. Gevorg

from http-auth.

gevorg avatar gevorg commented on July 22, 2024

btw, the latest version is published to NPM with 2.2.0 version, so you can use NPM also.

from http-auth.

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.