Part of twisted.web2.auth.interfaces View Source View In Hierarchy
Known implementations: twisted.web2.auth.basic.BasicCredentialFactory, twisted.web2.auth.digest.DigestCredentialFactory
| Attribute | scheme | string indicating the authentication scheme this factory is associated with. |
| Method | getChallenge | Generate a challenge the client may respond to. |
| Method | decode | Create a credentials object from the given response. May raise twisted.cred.error.LoginFailed if the response is invalid. |
| Parameters | peer | The client's address
(type: twisted.internet.interfaces.IAddress
) |
| Returns | dictionary of challenge arguments
(type: dict
) | |
| Parameters | response | scheme specific response string
(type: str
) |
| request | the request being processed
(type: twisted.web2.server.Request
) | |
| Returns | ICredentials | |