def digest_auth(request, response, realm, users):

    if check_auth(request, response, realm, users):
        return

    # inform the user-agent this path is protected
    response.headers["WWW-Authenticate"] = _httpauth.digestAuth(realm)

    return unauthorized(request, response)
Perform Digest Authentication
dataset/ETHPy150Open circuits/circuits/circuits/web/tools.py/digest_auth