(auth_map, password, method="GET", A1=None, **kwargs)
return response == auth_map["response"]
This function is used to verify the response given by the client when
    he tries to authenticate.
    Optional arguments:
     entity_body - when 'qop' is set to 'auth-int' you MUST provide the
                   raw data you are going to send to the client (usually the
                   HTML page.
     request_uri - the uri from the request line compared with the 'uri'
                   directive of the authorization map. They must represent
                   the same resource (unused at this time).
This function is used to verify the response given by the client when
    he tries to authenticate.
    Optional arguments:
     entity_body - when 'qop' is set to 'auth-int' you MUST provide the
                   raw data you are going to send to the client (usually the
                   HTML page.
     request_uri - the uri from the request line compared with the 'uri'
                   directive of the authorization map. They must represent
                   the same resource (unused at this time).
This function is used to verify the response given by the client when he tries to authenticate . Optional arguments : entity_body - when qop is set to auth - int you MUST provide the raw data you are going to send to the client ( usually the HTML page . request_uri - the uri from the request line compared with the uri directive of the authorization map . They must represent the same resource ( unused at this time ) .
def _checkDigestResponse(auth_map, password, method="GET", A1=None, **kwargs):
    """This function is used to verify the response given by the client when
    he tries to authenticate.
    Optional arguments:
     entity_body - when 'qop' is set to 'auth-int' you MUST provide the
                   raw data you are going to send to the client (usually the
                   HTML page.
     request_uri - the uri from the request line compared with the 'uri'
                   directive of the authorization map. They must represent
                   the same resource (unused at this time).
    """

    if auth_map['realm'] != kwargs.get('realm', None):
        return False

    response = _computeDigestResponse(auth_map, password, method, A1, **kwargs)

    return response == auth_map["response"]
def _checkDigestResponse ( auth_map , password , method = "GET" , A1 = None , * * kwargs ) : if auth_map [ 'realm' ] != kwargs . get ( 'realm' , None ) : return False response = _computeDigestResponse ( auth_map , password , method , A1 , * * kwargs ) return response == auth_map [ "response" ]