class documentation

class twisted.web.guard.BasicCredentialFactory: (source)

Implements interfaces: twisted.web.iweb.ICredentialFactory

View In Hierarchy

Credential Factory for HTTP Basic Authentication

Instance Variable authenticationRealm The HTTP authentication realm which will be issued in challenges.
Class Variable scheme A str giving the name of the authentication scheme with which this factory is associated. For example, 'basic' or 'digest'.
Method __init__ Undocumented
Method getChallenge Return a challenge including the HTTP authentication realm with which this factory was created.
Method decode Parse the base64-encoded, colon-separated username and password into a credentials.UsernamePassword instance.
authenticationRealm = (source)
The HTTP authentication realm which will be issued in challenges.
(type: bytes)
scheme = (source)

A str giving the name of the authentication scheme with which this factory is associated. For example, 'basic' or 'digest'.

(type: bytes)
def __init__(self, authenticationRealm): (source)

Undocumented

def getChallenge(self, request): (source)

Return a challenge including the HTTP authentication realm with which this factory was created.

def decode(self, response, request): (source)

Parse the base64-encoded, colon-separated username and password into a credentials.UsernamePassword instance.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.