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

Public Member Functions

def __init__ (self, auth_type, data=None)
 
def username (self)
 
def password (self)
 
def realm (self)
 
def nonce (self)
 
def uri (self)
 
def nc (self)
 
def cnonce (self)
 
def response (self)
 
def opaque (self)
 
def qop (self)
 
- Public Member Functions inherited from ImmutableDictMixin
def fromkeys (cls, keys, value=None)
 
def __reduce_ex__ (self, protocol)
 
def __hash__ (self)
 
def setdefault (self, key, default=None)
 
def update (self, *args, **kwargs)
 
def pop (self, key, default=None)
 
def popitem (self)
 
def __setitem__ (self, key, value)
 
def __delitem__ (self, key)
 
def clear (self)
 

Data Fields

 type
 

Detailed Description

Represents an `Authorization` header sent by the client.  You should
not create this kind of object yourself but use it when it's returned by
the `parse_authorization_header` function.

This object is a dict subclass and can be altered by setting dict items
but it should be considered immutable as it's returned by the client and
not meant for modifications.

.. versionchanged:: 0.5
   This object became immutable.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  auth_type,
  data = None 
)

Member Function Documentation

◆ cnonce()

def cnonce (   self)
If the server sent a qop-header in the ``WWW-Authenticate``
header, the client has to provide this value for HTTP digest auth.
See the RFC for more details.

◆ nc()

def nc (   self)
The nonce count value transmitted by clients if a qop-header is
also transmitted.  HTTP digest auth only.

◆ nonce()

def nonce (   self)
The nonce the server sent for digest auth, sent back by the client.
A nonce should be unique for every 401 response for HTTP digest auth.

◆ opaque()

def opaque (   self)
The opaque header from the server returned unchanged by the client.
It is recommended that this string be base64 or hexadecimal data.
Digest auth only.

◆ password()

def password (   self)
When the authentication type is basic this is the password
transmitted by the client, else `None`.

◆ qop()

def qop (   self)
Indicates what "quality of protection" the client has applied to
the message for HTTP digest auth. Note that this is a single token,
not a quoted list of alternatives as in WWW-Authenticate.

◆ realm()

def realm (   self)
This is the server realm sent back for HTTP digest auth.

◆ response()

def response (   self)
A string of 32 hex digits computed as defined in RFC 2617, which
proves that the user knows a password.  Digest auth only.

◆ uri()

def uri (   self)
The URI from Request-URI of the Request-Line; duplicated because
proxies are allowed to change the Request-Line in transit.  HTTP
digest auth only.

◆ username()

def username (   self)
The username transmitted.  This is set for both basic and digest
auth all the time.

Field Documentation

◆ type

type

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