OpenQuizz
Une application de gestion des contenus pédagogiques
HTTPDigestAuth Class Reference
Inheritance diagram for HTTPDigestAuth:
Collaboration diagram for HTTPDigestAuth:

Public Member Functions

def __init__ (self, username, password)
 
def init_per_thread_state (self)
 
def build_digest_header (self, method, url)
 
def handle_redirect (self, r, **kwargs)
 
def handle_401 (self, r, **kwargs)
 
def __call__ (self, r)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 

Data Fields

 username
 
 password
 

Detailed Description

Attaches HTTP Digest Authentication to the given Request object.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  username,
  password 
)

Member Function Documentation

◆ __call__()

def __call__ (   self,
  r 
)

Reimplemented from AuthBase.

◆ __eq__()

def __eq__ (   self,
  other 
)

◆ __ne__()

def __ne__ (   self,
  other 
)

◆ build_digest_header()

def build_digest_header (   self,
  method,
  url 
)
:rtype: str

◆ handle_401()

def handle_401 (   self,
  r,
**  kwargs 
)
Takes the given response and tries digest-auth, if needed.

:rtype: requests.Response

◆ handle_redirect()

def handle_redirect (   self,
  r,
**  kwargs 
)
Reset num_401_calls counter on redirects.

◆ init_per_thread_state()

def init_per_thread_state (   self)

Field Documentation

◆ password

password

◆ username

username

The documentation for this class was generated from the following file: