Handles credentials extraction and challenges per request.
challengeProtocol
(Attribute)
A challenge protocol used by the plugin.
If a credentials plugin works with other credentials pluggins, it and the other cooperating plugins should specify a common (non-None) protocol. If a plugin returns True from its challenge method, then other credentials plugins will be called only if they have the same protocol.
__parent__
*
-
Field
(default =
None
)
* = required
challenge(request)
Possibly issues a challenge.
This is typically done in a protocol-specific way.
If a challenge was issued, return True, otherwise return False.
logout(request)
Possibly logout.
If a logout was performed, return True, otherwise return False.
extractCredentials(request)
Ties to extract credentials from a request.
A return value of None indicates that no credentials could be found. Any other return value is treated as valid credentials.