server/sources/__init__.py
branchstable
changeset 4556 43c14e0e8972
parent 4252 6c4f109c2b03
child 4807 5642bfa43236
equal deleted inserted replaced
4555:8968c50818db 4556:43c14e0e8972
   289 
   289 
   290         do nothing by default
   290         do nothing by default
   291         """
   291         """
   292         pass
   292         pass
   293 
   293 
   294     def authenticate(self, session, login, password):
   294     def authenticate(self, session, login, **kwargs):
   295         """if the source support CWUser entity type, it should implements
   295         """if the source support CWUser entity type, it should implements
   296         this method which should return CWUser eid for the given login/password
   296         this method which should return CWUser eid for the given login/password
   297         if this account is defined in this source and valid login / password is
   297         if this account is defined in this source and valid login / password is
   298         given. Else raise `AuthenticationError`
   298         given. Else raise `AuthenticationError`
   299         """
   299         """