server/sources/__init__.py
changeset 6162 76bd320c5ace
parent 6142 8bc6eac1fac1
parent 6152 6824f8b61098
child 6427 c8a5ac2d1eaa
equal deleted inserted replaced
6154:b520763b6ace 6162:76bd320c5ace
   305         do nothing by default
   305         do nothing by default
   306         """
   306         """
   307         pass
   307         pass
   308 
   308 
   309     def authenticate(self, session, login, **kwargs):
   309     def authenticate(self, session, login, **kwargs):
   310         """if the source support CWUser entity type, it should implements
   310         """if the source support CWUser entity type, it should implement
   311         this method which should return CWUser eid for the given login/password
   311         this method which should return CWUser eid for the given login/password
   312         if this account is defined in this source and valid login / password is
   312         if this account is defined in this source and valid login / password is
   313         given. Else raise `AuthenticationError`
   313         given. Else raise `AuthenticationError`
   314         """
   314         """
   315         raise NotImplementedError()
   315         raise NotImplementedError()