Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
PluggableAuthService.PluggableAuthService.EmergencyUserAuthenticator Class Reference
Inheritance diagram for PluggableAuthService.PluggableAuthService.EmergencyUserAuthenticator:
Inheritance graph
[legend]
Collaboration diagram for PluggableAuthService.PluggableAuthService.EmergencyUserAuthenticator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def authenticateCredentials

Static Public Attributes

tuple security = ClassSecurityInfo()

Detailed Description

Definition at line 145 of file PluggableAuthService.py.


Member Function Documentation

Check credentials against the emergency user.

Definition at line 150 of file PluggableAuthService.py.

00150 
00151     def authenticateCredentials( self, credentials ):
00152 
00153         """ Check credentials against the emergency user.
00154         """
00155         if isinstance( credentials, dict ):
00156 
00157             eu = emergency_user
00158             eu_name = eu.getUserName()
00159             login = credentials.get( 'login' )
00160 
00161             if login == eu_name:
00162                 password = credentials.get( 'password' )
00163 
00164                 if eu.authenticate( password, {} ):
00165                     return (eu_name, None)
00166 
00167         return (None, None)
00168 
00169 classImplements( EmergencyUserAuthenticator
00170                , IAuthenticationPlugin
00171                )
00172 
00173 InitializeClass( EmergencyUserAuthenticator )
00174 

Here is the call graph for this function:


Member Data Documentation

Definition at line 147 of file PluggableAuthService.py.


The documentation for this class was generated from the following file: