rql_download.twistedserver.server.CubicWebCredentialsChecker¶
-
class
rql_download.twistedserver.server.
CubicWebCredentialsChecker
(cw_repositories)[source]¶ Check user credentials on a cubicweb instance
Methods
__init__
(cw_repositories)Initialize the ‘CubicWebCredentialsChecker’ class. requestAvatarId
(credentials)Get the avatar id. Attributes
credentialInterfaces
-
__module__
= 'rql_download.twistedserver.server'¶
-
credentialInterfaces
= (<InterfaceClass twisted.cred.credentials.IUsernamePassword>,)¶
-
requestAvatarId
(credentials)[source]¶ Get the avatar id.
Parameters: credentials: (mandatory) :
something which implements one of the interfaces in self.credentialInterfaces.
Returns: out: :
a Deferred which will fire a string which identifies an avatar, an empty tuple to specify an authenticated anonymous user (provided as checkers.ANONYMOUS) or fire a Failure(UnauthorizedLogin). Alternatively, return the result itself.
-