server/sources/__init__.py
changeset 3647 2941f4a0aab9
parent 3041 782fa7566a22
child 3674 387d51af966d
equal deleted inserted replaced
3646:3bba270202ef 3647:2941f4a0aab9
   286 
   286 
   287         do nothing by default
   287         do nothing by default
   288         """
   288         """
   289         pass
   289         pass
   290 
   290 
   291     def authenticate(self, session, login, password):
   291     def authenticate(self, session, login, **kwargs):
   292         """if the source support CWUser entity type, it should implements
   292         """if the source support CWUser entity type, it should implements
   293         this method which should return CWUser eid for the given login/password
   293         this method which should return CWUser eid for the given login/password
   294         if this account is defined in this source and valid login / password is
   294         if this account is defined in this source and valid login / password is
   295         given. Else raise `AuthenticationError`
   295         given. Else raise `AuthenticationError`
   296         """
   296         """