digest authentification

1 posts, 0 answers
  1. Stefan
    Stefan avatar
    1 posts
    Member since:
    Jan 2018

    Posted 18 Jan Link to this post

    Hi,

    I Need some help

    I want to connet to a Server by JavaScript from my Homeserver.

    The Server i want to connect, uses "Digest authentification", when I attempt, I get the following Response:

    {"jsonrpc":"2.0","result":{"realm":"Insta-NetBox","domain":"","uri":"/jsonrpc//management","nonce":"d4d4cceede1cd30ad082bab2d18b03f7741db5d2","opaque":"736873746d383364706b3772746b3335356b70356d7539306636","algorithm":"sha","qop":"auth"},"id":"1"

     

    I know the Password (I can log in with a web-application).

     {"jsonrpc":"2.0", "method":"userLoginDigest", "params":{"userName":"admin", "uri":"/jsonrpc//management", "qop":"auth", "cnonce":"77F63B06D02BA690D0AC929CF785F009E75F2BD" , "nc":"00000001" , "response":"ef0caa10c9dd87225e459312cd9d8686d6f6fcbc" , "realm":"Insta-NetBox", "nonce":"d4d4cceede1cd30ad082bab2d18b03f7741db5d2", "algorithm":"sha", "opaque":"736873746d383364706b3772746b3335356b70356d7539306636"}, "id":"2"}

    I get "Authorization failed"....

    according to RFC2617 I calculate the hashesfor the Response string and the "cnonce" value als a 40 sign random-string

    Does someone have a chance to verify my calculation?

     

     

     

     

     

Back to Top