Part of twisted.web.iweb View Source View In Hierarchy
Known implementations: twisted.web._auth.basic.BasicCredentialFactory, twisted.web._auth.digest.DigestCredentialFactory
ICredentials
providers from responses.
These objects will be used with twisted.cred
to authenticate an
authorize requests.
Attribute | scheme | A str giving the name of the authentication scheme with
which this factory is associated. For example, 'basic' or
'digest' .
|
Method | getChallenge | Generate a new challenge to be sent to a client. |
Method | decode | Create a credentials object from the given response. |
str
giving the name of the authentication scheme with
which this factory is associated. For example, 'basic'
or
'digest'
.
Parameters | peer | The request the response to which this challenge will be included.
(type: twisted.web.http.Request
) |
Returns | A mapping from str challenge fields to associated
str values.
(type: dict
) |
Parameters | response | scheme specific response string
(type: str
) |
request | The request being processed (from which the response was taken).
(type: twisted.web.http.Request
) | |
Returns | The credentials represented by the given response.
(type: twisted.cred.credentials.ICredentials
provider
) | |
Raises | twisted.cred.error.LoginFailed | If the response is invalid. |