noc.core.script.http.middleware.digestauth

Module Contents

class noc.core.script.http.middleware.digestauth.DigestAuthMiddeware(http)

Bases: noc.core.script.http.middleware.base.BaseMiddleware

Append HTTP Digest authorisation headers

name = digestauth
get_digest(self, uri, realm)
Parameters:
  • uri
  • realm
  • method – GET/POST
Returns:

build_digest_header(self, url, method, digest_response)
Parameters:
  • url – query URL
  • method – GET/POST method
  • digest_response (dict) – dict response header
Returns:

process_request(self, url, body, headers)