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

Public Member Functions

def __init__ (self, auth_type=None, values=None, on_update=None)
 
def set_basic (self, realm="authentication required")
 
def set_digest (self, realm, nonce, qop=("auth",), opaque=None, algorithm=None, stale=False)
 
def to_header (self)
 
def __str__ (self)
 
def __repr__ (self)
 
def auth_property (name, doc=None)
 
def stale (self)
 
def stale (self, value)
 
- Public Member Functions inherited from UpdateDictMixin
def calls_update (name)
 
def setdefault (self, key, default=None)
 
def pop (self, key, default=_missing)
 

Data Fields

 on_update
 

Static Public Attributes

 type
 
 doc
 
 realm
 
 domain
 
 nonce
 
 opaque
 
 algorithm
 
 qop
 
 auth_property
 
- Static Public Attributes inherited from UpdateDictMixin
 on_update
 
 clear
 
 popitem
 
 update
 

Detailed Description

Provides simple access to `WWW-Authenticate` headers.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  auth_type = None,
  values = None,
  on_update = None 
)

Member Function Documentation

◆ __repr__()

def __repr__ (   self)

◆ __str__()

def __str__ (   self)

◆ auth_property()

def auth_property (   name,
  doc = None 
)
A static helper function for subclasses to add extra authentication
system properties onto a class::

    class FooAuthenticate(WWWAuthenticate):
special_realm = auth_property('special_realm')

For more information have a look at the sourcecode to see how the
regular properties (:attr:`realm` etc.) are implemented.

◆ set_basic()

def set_basic (   self,
  realm = "authentication required" 
)
Clear the auth info and enable basic auth.

◆ set_digest()

def set_digest (   self,
  realm,
  nonce,
  qop = ("auth",),
  opaque = None,
  algorithm = None,
  stale = False 
)
Clear the auth info and enable digest auth.

◆ stale() [1/2]

def stale (   self)
A flag, indicating that the previous request from the client
was rejected because the nonce value was stale.

◆ stale() [2/2]

def stale (   self,
  value 
)

◆ to_header()

def to_header (   self)
Convert the stored values into a WWW-Authenticate header.

Field Documentation

◆ algorithm

algorithm
static

◆ auth_property

auth_property
static

◆ doc

doc
static

◆ domain

domain
static

◆ nonce

nonce
static

◆ on_update

on_update

◆ opaque

opaque
static

◆ qop

qop
static

◆ realm

realm
static

◆ type

type
static

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