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