parameters: (realm, algorithm = MD5, nonce = None, qop = AUTH)
return_statement: return 'Digest realm="%s", nonce="%s", algorithm="%s", qop="%s"' % (
          realm, nonce, algorithm, qop
      )
docstring: Challenges the client for a Digest authentication.
docstring_summary: Challenges the client for a Digest authentication.
docstring_tokens: Challenges the client for a Digest authentication .
function: def digestAuth (realm, algorithm = MD5, nonce = None, qop = AUTH):
      """Challenges the client for a Digest authentication."""
      global SUPPORTED_ALGORITHM, DIGEST_AUTH_ENCODERS, SUPPORTED_QOP
      assert algorithm in SUPPORTED_ALGORITHM
      assert qop in SUPPORTED_QOP
  
      if nonce is None:
          nonce = calculateNonce (realm, algorithm)
  
      return 'Digest realm="%s", nonce="%s", algorithm="%s", qop="%s"' % (
          realm, nonce, algorithm, qop
      )
function_tokens: def digestAuth ( realm , algorithm = MD5 , nonce = None , qop = AUTH ) : global SUPPORTED_ALGORITHM , DIGEST_AUTH_ENCODERS , SUPPORTED_QOP assert algorithm in SUPPORTED_ALGORITHM assert qop in SUPPORTED_QOP if nonce is None : nonce = calculateNonce ( realm , algorithm ) return 'Digest realm="%s", nonce="%s", algorithm="%s", qop="%s"' % ( realm , nonce , algorithm , qop )