server/sources/__init__.py
branchtls-sprint
changeset 1398 5fe84a5f7035
parent 1263 01152fffd593
child 1792 9eadf34fd860
equal deleted inserted replaced
1397:6cbc7bc8ea6d 1398:5fe84a5f7035
   227         do nothing by default
   227         do nothing by default
   228         """
   228         """
   229         pass
   229         pass
   230     
   230     
   231     def authenticate(self, session, login, password):
   231     def authenticate(self, session, login, password):
   232         """if the source support EUser entity type, it should implements
   232         """if the source support CWUser entity type, it should implements
   233         this method which should return EUser eid for the given login/password
   233         this method which should return CWUser eid for the given login/password
   234         if this account is defined in this source and valid login / password is
   234         if this account is defined in this source and valid login / password is
   235         given. Else raise `AuthenticationError`
   235         given. Else raise `AuthenticationError`
   236         """
   236         """
   237         raise NotImplementedError()
   237         raise NotImplementedError()
   238     
   238